What is the difference between a break statement and a continue statement?

Ads
 

What is the difference between a break statement and a continue statement?

Hi,

What is the difference between a break statement and a continue statement?

Thanks,

View Answers

April 17, 2013 at 12:07 PM

Hello,

In Java programming language supports 3 types of controlling statements such as: break statement, continue statement and return statement etc.

Other-then Java programming language the break statement is used in other programming languages such as C, C++. In case we want to exit from a loop before the completion of the loop program we uses the break statement and exit from the loop and loop is terminated. Sometimes we do not need to execute some statements under the loop then we use the continue statement that stops the normal flow of the control and control returns to the loop without executing the statements written after the continue statement.

For clear idea about the Break statement and continue statement visit this link:

http://www.roseindia.net/java/beginners/break.shtml

http://www.roseindia.net/java/beginners/continue.shtml

http://www.roseindia.net/java/jdk7/BreakStatement.shtml

Thanks,

Ads









Related Tutorials/Questions & Answers:
What is the difference between a break statement and a continue statement?
What is the difference between an if statement and a switch statement?
Advertisements
Continue and break statement
break and continue
break and continue
difference between prepared statement and statement
What is the difference between the >> and >>> operators?
what is the difference between extends and implements
what is the difference between extends and implements
What is the difference between $message and $$message?
what is the Difference between weblogic and jboss?
what is the difference between pop and oop
What is the difference between hibernate and spring
What is the difference between a constructor and a method?
C break continue example
Continue Statement
What is the difference between a JDK and a JVM?
What is difference between Path and Classpath?
What is the difference between JPA and Hibernate?
what is the difference between distributed application and web application?
What’s the difference between load() and get()?
What is difference between singleton and prototype bean?
What is the difference between JSF, Servlet and JSP?
what is the difference between productList==null and productList.size()==0
What is the difference between the Boolean & operator and the && operator?
What are difference between Bean Factory and Application Context ?
The continue statement The continue statement is used in many programming languages such as C
What is the difference between component and tag in JSF?
What is the difference between GET and POST method?
What is difference between UNIX Hosting and Window Hosting?
What is the difference between a data analyst and a data scientist?

Ads