bugl
bugl
HomeLearnPatternsPathsSearchPremium
HomeLearnPatternsPaths

Loading lesson path

Learn/Java/Java Reference
Java•Java Reference

Java break Keyword

❮ Java Keywords

i

Definition and Usage

The break keyword is used to break out a for loop, a while loop or a switch block.

Related Pages

Use the continue keyword to end the current iteration in a loop, but continue with the next.

Read more about for loops in our Java For Loops Tutorial .

Read more about while loops in our Java While Loops Tutorial .

Read more about break and continue in our Java Break Tutorial .

❮ Java Keywords

Previous

Java boolean Keyword

Next

Java byte Keyword