A

Admin • 828.43K Points
Coach

Q. What does the continue statement do in Java?

  • (A) Exits the program
  • (B) Skips the entire loop
  • (C) Skips current iteration and continues with next
  • (D) Throws an exception
  • Correct Answer - Option(C)
  • Views: 12
  • Filed under category Java
  • Hashtags: Java Loops

Explanation by: Admin
continue skips the rest of the loop for the current iteration and moves to the next.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.