Java break statement

It is one of the jump statement in java.
This statement is used within the loop or switch cases to terminate that statement or the current loop is immediately stopped and resumes at the next statement followed by a terminated loop. we can also say that it helps to break out from the middle of the loop.

Syntax of break:

Example of break statement:

Output: