πŸ“Š JAVA
Q. What will be the output?
Code:
System.out.println(5 + 5 + "5" + 5 + 5);
  • (A) 10555
  • (B) 10555
  • (C) 10555
  • (D) 10555
πŸ’¬ Discuss
βœ… Correct Answer: (A) 10555

Explanation: 5+5=10, then string concatenation results in 10555.

Explanation by: Roshan
5+5=10, then string concatenation results in 10555.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
1
Total Visits
πŸ“½οΈ
1 d ago
Published
πŸŽ–οΈ
Roshan
Publisher
πŸ“ˆ
85%
Success Rate