1.

What is an infinite loop ? Write an infinite loop statement. 

Answer»

An infinite loop can be created by skipping the condition. This provides infinite statements to be executed again and again. An infinite loop statement : 

int i; 

for (i = 1; ; i++) 

System.out.println(“This is an end loop”). 

}



Discussion

No Comment Found

Related InterviewSolutions