A

Admin • 828.43K Points
Coach

Q. Can you label a loop in Java and refer to it in break or continue?

  • (A) Yes
  • (B) No
  • (C) Only in methods
  • (D) Only inside try-catch
  • Correct Answer - Option(A)
  • Views: 17
  • Filed under category Java
  • Hashtags: Java Loops

Explanation by: Admin
Labeled break and continue are valid in Java for nested loops.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.