Explain break statement and continue statement?

Answers were Sorted based on User's Feedback



Explain break statement and continue statement?..

Answer / 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

Explain break statement and continue statement?..

Answer / 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

Explain break statement and continue statement?..

Answer / ravikiran(aptech mumbai)

break statement will through you out of the loop.
where as continue will aboandon the current iteration and
will make you to continue with next iteration

Is This Answer Correct ?    10 Yes 2 No

Post New Answer

More Core Java Interview Questions

Which collection object is faster to retrieving the data and inserting the data into it.

2 Answers   Jamcracker, Virtusa,


What is java used for?

0 Answers  


Hi ,i convert contrller as jSp And presentation as servlet ...will it do? if so what are advantage and idsadvantages

2 Answers   IBM,


how to create a jar file in java

1 Answers  


How do you write a good declaration?

0 Answers  


how to run ecllipse with jettyserver for windows environment using batch file

0 Answers  


what is use of threads how many ways to create thread

3 Answers   iTrust, Verizon,


What is the access scope of a protected method?

0 Answers  


What are field variable and local variable?

3 Answers  


Describe method overriding

0 Answers  


What is the top class of AWT event hierarchy?

5 Answers  


What is static keyword in java?

0 Answers  


Categories