#15 Break and Continue in Java | Jump Statements in Java

Published: 20 December 2023
on channel: Nilesh Kavankar
87
1

let's talk about Jump statements called as break and continue in Java.

Break:
Break statement in java is used to terminate from the loop immediately.
It breaks the current flow of the program at specified condition.
It stops the execution of further statements and iterations.


Continue:
Continue will skip the remaining statements of the block and does not execute them.
Through continue, you will directly jump to the next iteration.
It is a jumping statement as through it we can skip the iteration.

Differences between Break and Continue:
In continue, it will skip the current iteration but complete the remaining iterations.
In break, it will break the loop so it will not allow any further statement to be executed.

In this video we will see:
What are jumping statements in Java?
What is Continue statement?
What is Break statement?
Difference between Break and Continue


On this page of the site you can watch the video online #15 Break and Continue in Java | Jump Statements in Java with a duration of hours minute second in good quality, which was uploaded by the user Nilesh Kavankar 20 December 2023, share the link with friends and acquaintances, this video has already been watched 87 times on youtube and it was liked by 1 viewers. Enjoy your viewing!