Break and Continue statement in Java.

In Java, The break statement is used to terminate the loop immediately and continue statement is used to continue the loop.

Code :