Explain break statement and continue statement?

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you start a new line in java?

511


Is list ordered in java?

534


What is remote method invocation (rmi)?

607


What is difference between hashset and hashmap?

550


How are destructors defined in java?

564






Why is stringbuffer thread safe?

563


Is void a keyword in java?

586


Is integer passed by reference in java?

558


What is a finally block?

550


What is string pool in java?

559


Can a method be overloaded based on different return type but same argument type?

539


What is basic syntax?

540


What state does a thread enter when it terminates its processing in java programming?

572


How do you create a method in java?

536


How variables are declared?

510