Explain break statement and continue statement?

Answer Posted / shambhu kumar

The break keyword halts the execution of the current loop
and forces control out of the loop.

The continue is similar to break, except that instead of
halting the execution of the loop, it starts the next
iteration.

Is This Answer Correct ?    16 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is size of int in java?

540


What is meant by oops concept in java?

500


Define "Access specifiers" in java.

606


What is an abstract class and what is it’s purpose?

531


Are primitives objects?

560






is there a separate stack for each thread in java? : Java thread

531


What causes memory leak in java?

471


What is the difference between synchronized and synchronized block?

496


How to use arraylist in java netbeans?

498


define the terminology association.

607


What is immutable data?

574


What is the difference between state-based unit testing and interaction-based unit testing?

491


What does yield method of the thread class do?

574


What are the different types of java?

550


Does constructor return any value?

572