← BYTES
Java·Starter·Ref: 9.1.17

What does the `continue` statement do inside a loop?

Have a question about this video? Mention reference 9.1.17 when you contact us.

a.Exits the loop entirely
b.Skips the rest of the current iteration's body and proceeds to the next iteration's condition check
c.Pauses execution indefinitely
d.Restarts the entire program
continue jumps straight to the loop's next iteration (re-checking the condition for a while/for loop), skipping whatever code remains in the current iteration's body -- unlike break, it does not exit the loop.

Find this on YouTube & Instagram

Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:

#BYTES#BYTES9117#Java