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

what is static import in java? Explain

812


What is <> used for in java?

884


what is the difference between the methods sleep() and wait()? : Java thread

757


How java uses the string and stringbuffer classes?

769


What is the meaning of variables in research?

810


Is 0 true or false?

748


What is considered an anti pattern?

737


How do you read a char in java?

737


What is exception hierarchy in java?

812


A non-static inner class may have object instances that are associated with instances of the class’s outer class. A static inner class does not have any object instances.

803


Can singleton class be inherited in java?

763


What is difference between identifier and variable?

781


What is a method declaration?

760


What is the final class modifier?

798


Which class is the superclass of all classes?

876