The keyword ________ is used to skip the rest of the current loop iteration.

  • break
  • continue
  • exit
  • return
In Java, the continue keyword is used to skip the rest of the current loop iteration and move to the next iteration. It is often used in loops like for and while when certain conditions are met, and you want to skip the current iteration and continue with the next one. The other options do not serve this purpose.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *