Posts

Regarding infinite loop, need help to understand

Image
up vote -2 down vote favorite I first searched Google for my question but did not find the answer matching it. My question is: for(; ;){ //some code here } The loop is infinite, we give a condition to match, till that loop goes on. But when we make in infinite to do the thing, again and again, so what is the limitation of the loop? I mean where does the loop stop? Does it crash? Or it starts again from the place it begins? I hope I explain my question well and easy to be understandable. java loops infinite-loop share | improve this question edited yesterday Andrew Thompson 152k 27 159 333 ...