What is printed by this Java string concatenation?
System.out.println("1" + 1);Answer & explanation
Answer: 11
With a String left operand, + concatenates the textual representation of the right operand.
Practice strings with self-contained questions. Check your answer, then use the explanation to understand the reasoning.
System.out.println("1" + 1);Answer: 11
With a String left operand, + concatenates the textual representation of the right operand.