A

Admin • 828.43K Points
Coach

Q. What happens when break is executed in a nested loop?

  • (A) Exits both loops
  • (B) Exits the outer loop
  • (C) Exits the inner loop
  • (D) Restarts the outer loop
  • Correct Answer - Option(C)
  • Views: 11
  • Filed under category Java
  • Hashtags: Java Loops

Explanation by: Admin
Without a label, break only exits the inner loop.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.