System.out.println(" " +2 + 3);
System.out.println(2 + 3);
System.out.println(2 + 3 +"");
System.out.println(2 + "" +3);
A) Compilation error at line 3
B) Prints 23, 5, 5 and 23.
C) Prints 5, 5, 5 and 23.
D) Prints 23, 5, 23 and 23.
Why is B here the answer , i thought that the + operator is overloved, and if only one off the values is a
string, it all values are considered as strings ???
I thought that line 3 is also 23 ???