Can a for loop be written in Java to create an infinite loop or is it only while loops that cause that problem?
There is also this one, to complete the topic:
do {something();} while(true);