I was looking inside the AtomicInteger Class and I came across the following method:
AtomicInteger
/** * Atomically increments by one the current value. *
It is equivalent to while(true).
while(true)
A for-loop has three elements:
for(;;) is not setting any of them, making it an endless loop.
for(;;)
Reference: The for statement