How many ways can one write an infinite loop ? - JAVA Interview Questions

How many ways can one write an infinite loop ?


Personally I would recommend following ways to implement infinite loop in Java but their can be other ways like calling a method recursively , though I never tested that.

- while (true)

- for (;;) { }


Click Here to See Answer .....
Did you like this article ?
Subscribe to my RSS feed and get more JAVA Question, and Guideline, Plus a lot more great advice to help your Software Career.

0 comments:

Related JAVA Questions Posts