exactly, as long as you don't have any condition that may prevent the loop body from executing, well, it keeps looping...
So in clear in for(X ; Y ; Z )
you can have whatever you want in X and Z but if there is nothing in the place of Y then you have an infinite loop...
Actually that's not quite accurate if you have an if-statement with a break statement inside the loop, like this:
but this is bad code and I don't see the advantage of doing so... But you know there are tons of bad
java code out there, so be aware