Ask a Question    Search Answers  

Category
Computers >> Programming Concepts >> Java

Question
What does break and continue statements do?  (1 answers) Posted by: venkatreddy04   Ask a Friend

Answers
1.

Continue statement continues the current loop (if label not specified) in a new iteration whereas break statement exits the current loop.

In Loop,when Break statement occurs then control breaks the loop & comes outside of loop
and when continue statement occurs then control skips further statements and goes for next itteration.
    Answered by: nvreddy


    Add an Answer to this Question
    Add a New Question
    Notify updates to this question
    Mail to a Friend
Rate this answer:       Exact       Correct       somewhat correct       wrong       spam

User comments


  What is the difference between doPost and doGet methods?
  How are Servlets and JSP Pages related?
  Give the Details of XML files used in Validator Framework?
  What is ActionForm?
  What are the types of resultsets?
  What are the standard isolation levels defined by JDBC?
  How can I enable session tracking for JSP pages if the browser has disabled cookies?
  What's a better approach for enabling thread-safe servlets and JSPs? ?
  How do I use a scriptlet to initialize a newly instantiated bean? ?
  Is servlet is used to create a dynamic webpage or Static webpage or both?
  What is default capacity of connection pool objects in pool of app-server Weblogic and Tomcat webserver?
  Can we apply multiple inheritence in java?
  How to define an Abstract class?
  What is similarities/difference between an Abstract class and Interface?
Add New Question
Glossary
Add Glossary
 
Copyright © 2009-10 Krify Software Technologies Pvt Ltd. All rights reserved.