Explore Library
Code QuizBeginner

String Concatenation Order

Find why this label prints an unexpected number.

Codejava
public class Concat {
    public static void main(String[] args) {
        String result = "Sum: " + 2 + 3;
        System.out.println(result);
    }
}

Why does this print 'Sum: 23' instead of 'Sum: 5'?