ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Core Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
Explain break statement and continue statement?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Explain break statement and continue statement?
Answer
# 1
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 ?    2 Yes 0 No
Ranganathkini
 
  Re: Explain break statement and continue statement?
Answer
# 2
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 ?    4 Yes 0 No
Shambhu Kumar
 
 
 
  Re: Explain break statement and continue statement?
Answer
# 3
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 ?    2 Yes 0 No
Ravikiran(aptech Mumbai)
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
What is a class ?  8
what is servlet filter?  1
Need 2+ yrs experienced java techinical question papaer for company Iflex  1
Given: 10. interface A { void x(); } 11. class B implements A { public void x() { } public voidy() { } } 12. class C extends B { public void x() {} } And: 20. java.util.List list = new java.util.ArrayList(); 21. list.add(new B()); 22. list.add(new C()); 23. for (A a:list) { 24. a.x(); 25. a.y();; 26. } What is the result? 1 Compilation fails because of an error in line 25. 2 The code runs with no output. 3 An exception is thrown at runtime. 4 Compilation fails because of an error in line 20.  1
What is finally in exception handling?  6
how can you retrive information from database by using hashmap/arraylist ,plz explain with example briefly? Satyam1
can u give one sinario when you use Abstract Class and When you use Interface. ITC-Infotech5
What is method Overriding in the perspective of OOPS?  2
can we have function for truncating the sign as like abs in oracle.  1
If two threads call a static method at the same point of time, what will happen? KPIT1
Explain, why the constructor is required in implemented class?  2
Which Java operator is right associative?  1
What for read() function?  3
what is the difference between a java object reference and c++ pointer?  3
when,where and how to use abstract class and interface  2
What are the advantages of the model over the event- inheritance model?  1
Instead of writing Home, Remote Interfaces if i directly extends EJBObject to bean class what happens? Flextronics1
Life Cycle of Thread IBM3
What are Access Specifiers and Access Modifiers. TCS4
In Serialization, whether you will use Static variables? HCL2
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com