Is there any performance penalty for the following code snippet?
for (int i=0; i
You can disassemble the code with javap -c and check what the compiler actually emits. On my setup (java 1.5/mac compiled with eclipse), the bytecode for the loop is identical.