Multiple choice

What is the value of "1" + "3" + 2?

  1. 15

  2. 132

  3. 42

  4. 6

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In Java, the '+' operator performs string concatenation when at least one operand is a String. Evaluating from left to right, "1" + "3" results in "13", and then "13" + 2 results in "132".