IDYN Solutions

Search Results

Java – Jump Statements

January 22, 2007 · 9 Comments

break statement
In several instances, such as an error or incorrect input from the user, it may be necessary for the flow of control to exit from a loop statement. To accomplish this, Java provides a jump statement called break statement.
The break statement forces the control to come out from a switch statement, a while loop, [...]

Tags: Java