Interactive:

Task 4 of 15 · 0 solved · 15 to go0%
You can read the problem, but answers are checked only for signed-in students. Sign in to answer →

The + operator is read from left to right. Type exactly what this program prints.

public class Main {
    public static void main(String[] args) {
        System.out.println("a" + 1 + 2);
        System.out.println(1 + 2 + "a");
    }
}
Next task →