← BYTES
Java·Starter·Ref: 9.1.16
What does the `break` statement do inside a loop?
Have a question about this video? Mention reference 9.1.16 when you contact us.
a.Immediately exits the enclosing loop entirely
b.Pauses the loop temporarily
c.Skips to the next iteration only
d.Restarts the loop from the beginning
break terminates the nearest enclosing loop (or switch) immediately, transferring control to the statement right after the loop -- distinct from `continue`, which only skips the rest of the current iteration.
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#BYTES9116#Java