Computer Science, asked by oendrila8, 1 year ago

difference between break and continue statement in Java

Answers

Answered by Anonymous
9
Break is used to take immediate exit from the loop.
continue is used to transfer the program control to the next iteration
Answered by alinaateeq
9

Differences Between break and continue (with Comparison Chart ... Java supports three jump statements 'break' 'continue' and 'return'. The main difference between break and continue is that break is used for immediate termination of loop whereas, continue terminate current iteration and resumes the control to the next iteration of the loop.

alinaateeq: thanks
Similar questions