PRACTICE / UNDERSTAND / REPEAT

Java: Strings

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

40 questionsAnswers explainedFree · no login
Question 1 of 40
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.