Java   View all facts   Glossary   Help
syntactic unit > statement > control flow statement > break statement > unlabelled break statement
Next break statementlabelled break statement    Upbreak statement

unlabelled break statement comparison table
Subject have example is a kind of jump
break statement control flow statement 
unlabelled break statement
//Without a label the break statement exits the inner loop and resumes execution with the outer loop
for (int i = 0; i < 10; i++) {
while (x < 50) {
if (i * x++ > 400) {
break;
}
//inner loop here
}
//outer loop here
}
break statementoutside the nearest loop to an enclosing loop or to the next statement outside the loop

Next break statementlabelled break statement    Upbreak statement