What is the output of the Java statement System.out.println(3 + 2 + “5”);?
Correct answer A. 55
Explanation
Evaluation is left to right, so 3 + 2 is added as numbers to give 5 first, and then concatenated with "5" to print "55".
Answer checked How we write and check questions
Discussion