Q. What will be the output?
Code:
System.out.println(5 + 5 + "5" + 5 + 5);
β
Correct Answer: (A)
10555
Explanation: 5+5=10, then string concatenation results in 10555.