Explain break statement and continue statement?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
What is an empty class? What functionality does it offer in Java?
0 Answers Deloitte, EXL, JPMorgan Chase,
what is the difference b/w PUT and POST method to send data to the server
Explain about the performance aspects of core java?
What is module in project?
What is the ==?
Can we extend singleton class?
Difference String and String Buffer
What are the 8 primitive data types in java?
What is style and indentation?
What is the difference between multitasking and multithreading in Java
0 Answers Sans Pareil IT Services,
What is array pointers ?
How Marker Interfaces are instruct to complete the desired need ?