PRACTICE / UNDERSTAND / REPEAT

Java practice question

Practice strings with self-contained questions. Check your answer, then use the explanation to understand the reasoning.

1 questionAnswers explainedFree · no login

Try this question

Strings · MCQQuestion link ↗

What is printed by this Java string concatenation?

System.out.println("1" + 1);
Choose one answer
Answer & explanation

Answer: 11

With a String left operand, + concatenates the textual representation of the right operand.