Can a for loop be written in Java to create an infinite loop or is it only while loops that cause that problem?
Dont forget mistakes like
for (int i=0; i<30; i++) { //code i--; }
It's not as uncommon as it should be.