Skip to content
Quiz · Conditions · lesson 4 of 8

Quiz — if without braces

What does the program print?

JAVA
public class Main {
    public static void main(String[] args) {
        int x = 5;
        if (x > 10)
            System.out.print("A");
            System.out.print("B");
    }
}