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

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,









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
JavaScript Break Continue 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
difference between statement and a prepared statement - JDBC
What is the difference between PHP4 and PHP5?
What is difference between a PROCEDURE & FUNCTION ?
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
Java statements
Java statements
What is the difference between a constructor and a method?
What is difference between the java and javascript?
Continue Statement
C break continue example
What is the difference between a JDK and a JVM?
What is the difference between a HAVING CLAUSE and a WHERE CLAUSE?
What is difference between Path and Classpath?
What is difference between TRUNCATE & DELETE
What is the difference between JPA and Hibernate?
What is difference between the java and javascript?
What’s the difference between include and require?
what is the difference between distributed application and web application?
What is the difference between ereg_replace() and eregi_replace()?
What is the difference between the functions unlink and unset?
What are the difference between abstract class and interface?
What’s the difference between load() and get()?
What is the difference between JSF, Servlet and JSP?
What is difference between singleton and prototype bean?
what is difference between objectan primitive? - Java Beginners
The continue statement The continue statement is used in many programming languages such as C
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 ?
What is the difference between UNION and UNION ALL in SQL?
What is the difference between static and dynamic SQL?
what is the difference between the eclipse and myeclipse - IDE Questions
What is the difference between component and tag in JSF?
Java - Continue statement in Java
What is the difference between IN and BETWEEN, that are used inside a WHERE clause?
What is the difference between GET and POST method?
What is difference between UNIX Hosting and Window Hosting?

Ads