Q. What will be output?
Code:String S1 = "S1 ="+ "123"+"456"; String S2 = "S2 ="+(123+456);
β
Correct Answer: (A)
S1=123456, S2=579
Explanation: If a number is quoted in "" then it becomes a string, not a number any more.