Though I have some experience in Java, the following code looks a bit strange to me:
public class ForLoopTest{
    public static void main(String[] args){
        for(;;){}
    } 
}This code compiles fine, although the initialization-test-increment part is empty, unlike a usual for loop:
for(int i=0; i<10; i++){}
Since the code compiles fine, it's valid syntax.
Is there any practical use of this type of for loop where there is no initialization-test-increment part ?
 
     
     
     
     
     
     
     
     
    