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

What about main() method in java ?

0 Answers  


what is the default value of a variable char?(If not assigned)

4 Answers  


What is diffrance between FINALIZE() & FINALLY ?

2 Answers   Infosys,


What is passed by reference and pass by value ?

0 Answers  


What is toarray method in java?

0 Answers  






Does isempty check for null?

0 Answers  


What is callable java?

0 Answers  


what release of java technology are currently available what do they contain?

1 Answers  


What is the final keyword?

0 Answers  


Difference between association, composition and aggregation?

0 Answers  


What are the differences between graph and tree?

0 Answers   Amazon,


What’s meant by anonymous class?

0 Answers  


Categories