Jump Statements In Java | Break Statement in Java | Continue Statement In Java (Java Tutorial)

preview_player
Показать описание
Iteration Statements In Java | While Loop In Java | Do While Loop In Java | For Loop In Java |

follow me on:

Jump Statement :
-----------------------------
Jump Statement is one of the types from Control Statements, jump statements are basically used to come out of the loop or skip the looping statements.

Types Of Jump Statements:
---------------------------------------------
We have 3 different types of jump statements:
1) break statement
2)continue statement
3)return statement (As of now function is not yet discussed, we will not be discussing it).

break Statement:
----------------------------
The break statement is used for coming out of the loop and even we use this keyword in switch statement also

continue Statement:
---------------------------------
The continue statement is used to skip the statement in the loop.
Рекомендации по теме
Комментарии
Автор

what if you want to skip more than one number for examaple 0123789?

neilfrankatendido