it follows that the return statement must be the last statement executed in functionas the rest of the code will never be reached note that there is significant difference between statement being the last line of code that is executed in method and the last line of code in the method itself in the example abovethe line return trueis clearly not the last line of code that is written in the functionbut it may be the last line that is executed (if the condition involving date is truesuch statement explicitly interrupts the flow of control in the method there are two other such explicit control-flow statementswhich are used in conjunction with loops and switch statements the break statement the typical use of break statement has the following simple syntaxbreakit is used to "breakout of the innermost switchforwhileor dowhile statement body when it is executeda break statement causes the flow of control to jump to the next line after the loop or switch to the body containing the break the break statement can also be used in labeled form to jump out of an outernested loop or switch statement in this caseit has the syntax break labelwhere label is java identifier that is used to label loop or switch statement such label can only appear at the beginning of the declaration of loop there are no other kinds of "go tostatements in java we illustrate the use of label with break statement in the following simple examplepublic static boolean haszeroentry (int[][aboolean foundflag falsezerosearchfor (int = < lengthi++for (int = < [ilengthj++