Name two jump statements and their use
Question :
Name two jump statements and their use
Jump statements in Java:
break- The break statement causes an immediate exit from the do-while, for, switch or while statement in which it appears.
continue- The continue statement is used with the loop instructions do-while, for, and while.
It transfers control to the place in the program where the next iteration of the loop in which it
appears, begins.