Explain break statement and continue statement?

Answer Posted / ranganathkini

The break statement exits the loop execution and starts
executing the statement just after the loop.

The continue statement stops executing the rest of the
current iteration and starts the next iteration.

Is This Answer Correct ?    26 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How transient variable is different from volatile variable?

774


What is byte [] in java?

764


How can you set the applet size?

826


What is substring 1 in java?

790


What is the difference between an array and an array list?

739


What is a data structure java?

765


who can i handle multiple client in RMI

1668


What is finally and finalize in java?

807


how are methods defined?

803


What is the significance of continue jump statement? Explain with an example.

1041


What is a null class?

773


Why parameters should be passed by reference?

716


Is java a software?

717


Why volatile is used in java?

767


What is the difference between an inner class and a sub-class?

727