What is the difference between the continue and break statement?
Answer Posted / hr@tgksolutions.com
Two crucial words that are utilized in loops are break and continue. When a loop has a break keyword, the loop ends immediately. When the continue keyword is used, the current iteration ends and the loop moves on to the following iteration.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Give few examples of final classes defined in Java API?
What are different data structures in java?
What is a method in java?
How do I convert a string to an int in java?
How to create an interface?
How are this() and super() used with constructors in java programming?
What is initial size of arraylist in java?
Can we make constructors static?
Explain thread life cycle in java?
How we can make copy of a java object?
How do you get the length of a string in java?
Why does java not support operator overloading?
When should you use arraylist and when should you use linkedlist?
What is the difference between overriding and overloading in OOPS.
How many types of flags are there?