"This example using if is a little different from a while, because the compiler will compile even the sequence if(true) return; System.out.println(Hello); without complaining." . . . .