1.

What is meant by an infinite loop ? Give an example.

Answer»

An infinite loop is a loop whose test condition is always true. This type of loop never ends by itself. 

For example : 

for (i=l; i>0; i++) 

System.out.println(“Prashant Arora”); 

base class 

}



Discussion

No Comment Found

Related InterviewSolutions