I had the following lines of code
boolean b = false;
for (int i = 0; b; i++) {}
it executes well
now if I replace above code with
for (int i = 0; false; i++) {}
it gives -> java.lang.Error: Unresolved compilation problem: Unreachable code
why? please help.
javacdoesn't extrapolatebin first case