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 modifiers are used with a top level class?

3 Answers  


What is a native method in java programming?

0 Answers  


Lowest Common ancestor in a Binary Search Tree and Binary Tree.

0 Answers   Amazon,


How big is a boolean?

0 Answers  


Explain access modifiers in java.

0 Answers  






Is set ordered?

0 Answers  


What about main() method in java ?

0 Answers  


What are different types of control structures?

0 Answers  


Can we define a package statement after the import statement in java?

0 Answers  


What is a null check?

0 Answers  


What is an Applet ?

2 Answers  


Can a class be private?

0 Answers  


Categories