I am getting compile time "unreachable code" error on below line in my program:
System.out.println("i =" + i + ", j = " + j);
public static void main(String[] args) { int i = 0, j = 5; tp: for (;;) { i++; for (;;) { if (i > --j) { break tp; } } System.out.println("i =" + i + ", j = " + j); } } kindly help me out to find the exact cause for this. Thanks in advance.