<code>if (x > 0); System.out.println("hello");</code> always prints "hello" because
- A
if-statement is ignored
- Bcheck_circle
Trailing semicolon makes the if-body empty; the print runs unconditionally
- C
x > 0 always true
- D
Compile error
Explanation
The semicolon ends the if; print is no longer part of the if.