A

Admin • 828.03K Points
Coach

Q. Which of the following is an infinite loop in Java?

  • (A) for(;;)
  • (B) while(true)
  • (C) do {} while(true);
  • (D) All of the above
  • Correct Answer - Option(D)
  • Views: 17
  • Filed under category Java
  • Hashtags: Java Loops

Explanation by: Admin
All are valid ways to create infinite loops in Java.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.