I looked at the source of the AtomicBoolean class and found an interesting for loop declaration as follows:
AtomicBoolean
for
for (;;) { //Something }
What does this cycle do?
This is an endless cycle. The same can be done with:
while (true) { //Loops forever. }
Take a look at the docs .
This is short for infinite loop. It will continue until the break statement completes the loop.
It ends endlessly. Like it:
while (true) { }
This is an infinite loop that will not stop execution if it does not have a break statement. This is the same as while(true) .
break
while(true)
This is an endless cycle.