What is the difference between a standard while(true) loop and for(;;)?
Is there any, or will both be mapped to the same bytecode after com
I have looked at the generated byte code and found that since the condition is always true (at compile time), the compiler will compile away the test and just branch always back to the top of the loop. I assume that a continue statement will also do a branch always back to the top of the loop. So, not only does it not make any difference, there isn't even any code generated to test anything.