Why does Java have an "unreachable statement" compiler error?
I often find when debugging a program it is convenient, (although arguably bad practice) to insert a return statement inside a block of code. I might try something like this in Java .... class Test { public static void main(String args[]) { System.out.println("hello world"); return; ...