break keyword in Java

The break keyword stops the execution of for loop, while loop and switch-case. In switch case,The execution goes to next statement after all switch cases if any switch case is broken. The following example shows a break statement inside a for loop: for (int count = 1; count <= 100; count++) {       […]

Share this article on