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: 1 2 3 4 5 6 7 8 9 10 11 12 13 […]

Share this article on