class Example { for (;;) { return; int x = 1; // doesn't compile, because the code can never be run } } }
Standard input is empty
Main.java:5: error: unreachable statement
int x = 1; // doesn't compile, because the code can never be run
^
1 error
Standard output is empty