java - What is the for(;;){ } syntax? -
this question has answer here:
- how loop work, for(;;)? 7 answers
i've seen in java program following syntax :
for(;;){ }
what means ? didn't see explanation on internet after researches.
is same thing while(true) loop?
edit :
sorry duplicate, when type " for(;;) " in researches doesn't find information wanted. reply.
this:
for (;;) { }
it's shorthand infinite loop, equivalent this:
while (true) { }
in fact, show in answer both equivalent @ bytecode level.
Comments
Post a Comment