Advertisement
Google Ad Slot: content-top
Java Break and Continue
break Statement:
The break statement is used to exit from a loop prematurely. When a break statement is encountered inside a loop, the loop will stop executing.
continue Statement:
The continue statement is used to skip the current iteration of a loop and move to the next iteration.