What is broken and continue statement?



What is broken and continue statement?..

Answer / Prabhakar Awasthi

"The 'break' statement is used to exit a loop entirely, while the 'continue' statement is used to skip the current iteration of a loop and move on to the next one. These statements are useful in controlling flow within loops."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Can a abstract class be declared final?

1 Answers  


what is data binding? give the example

1 Answers   TCS,


what is singlton class?where it is use in real time senario.

1 Answers   Wipro,


How does class forname work in java?

1 Answers  


where lives in jvm

5 Answers  


How hashset works internally in java?

1 Answers  


What is __ init __ functions?

1 Answers  


How we can skip finally block of exception even if some exception occurs in the exception block in java?

1 Answers  


why java is platform independent?

5 Answers   IBM, SparkTG,


What are packages in java?

6 Answers  


How many bytes is a string java?

1 Answers  


Can an object be garbage collected while it is still reachable?

3 Answers  


Categories