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 a arraylist in java?

562


What is javac in java?

566


Is an array a vector?

558


What is an association?

554


What is queue in java?

558






How to perform bubble sort in java?

593


What is the right data type to represent a price in java?

574


Explain the protected field modifier?

598


What is definition and declaration?

530


How is treeset implemented in java?

497


What is the use of a copy constructor?

575


What is integers and example?

498


What is the need of transient variables in Java ?

583


What is role of void keyword in declaring functions?

580


What is finalize() function in java?

564