Java OCA OCP Practice Question 1064

Question

What keyword is used to end the current loop iteration and proceed execution with the next iteration of that loop?

  • A. break
  • B. continue
  • C. end
  • D. skip


B.

Note

The continue keyword is used to end the loop iteration immediately and resume execution at the next iteration.

Option B is correct.

Option A is incorrect because the break statement causes execution to proceed after the loop body.




PreviousNext

Related