difference between break and continue statement in Java
Answers
Answered by
9
Break is used to take immediate exit from the loop.
continue is used to transfer the program control to the next iteration
continue is used to transfer the program control to the next iteration
Answered by
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