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 replaceall in java?
What are triggers in DB? Explain their types. How do they work?
Does collectionutils isempty check for null?
Explain the key functions of data binding?
0 Answers Akamai Technologies, Aspire, Impetus, Infogain, Tavant Technologies, Virtusa,
What is the difference between a public and a non-public class?
Is there a jre for java 11?
What are the differences between getting and load method?
Why string is called as immutable?
Explain the term virtual machine?
Explain try and catch keywords in java?
if am have 100 threads(for ex:T1,T2---T100) how we give priority to these threads and how the system excute these threads
How many types of literals are there in JAVA?