What is the difference between a break statement and a continue statement?

Java Programming Language >   Decision Making in java >   About Java Tutorial  

Short Question

668


Answer:

A break statement results in the termination of the statement to which it applies (switch, for, do, or while). A continue statement is used to end the current loop iteration and return control to the loop statement.


This Particular section is dedicated to Question & Answer only. If you want learn more about Java Programming Language. Then you can visit below links to get more depth on this subject.




Join Our telegram group to ask Questions

Click below button to join our groups.