Q. What will be the output?
Code:
System.out.println("A" + "B" + 10 + 20);
β
Correct Answer: (B)
AB1020
Explanation: String concatenation occurs first, resulting in AB1020.