Explain break statement and continue statement?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a class reference?

778


If you are given the name of the function at run time how will you invoke the function?

898


Tell me a few examples of final classes defined in Java API?

788


Explain the use of shift operator in java. Can you give some examples?

741


What is thread safe in java?

745


What do you understand by looping in java? Explain the different types of loops.

802


Is string pool garbage collected?

778


What is bom encoding?

779


What is difference between path and classpath in java?

712


What do you mean by aggregation?

834


What is gc()?

756


Is java a digit method?

754


What is string variable?

809


What happens if a constructor is declared private?

807


Explain about version control?

778