while(true)

What does that do? I know what the while loop is; you put the condition in parentheses and it loops until the condition is false, but that's just the problem here: until what is false? Someone please explain this to me.
true is never false, so the loop never exits. It's an infinite loop.

The only way to get out of it is with break, throw, goto, or return.
Last edited on
Topic archived. No new replies allowed.