What will be the output of the following code?
int x = 5; if (x > 2) if (x > 4) System.out.println("A"); else System.out.println("B");
A
B
Compilation Error
No Output
This question is part of this quiz :
Java Control Statements and Loops