3.1 Control Statements In Java| Selection Statements In Java| Iteration Statements| Jump Statements

preview_player
Показать описание
follow me on:

Control Statements
-------------------------------------------
Control statements are basically used for controlling the flow of the program
Control statements are divided into three different types:
1) Selection Statements
2) Iteration Statements
3) Jump Statements

Selection Statements:
-------------------------------------
These statements are used to make some selection on the block of statements present in code depending on the condition.
Selection statements basically have five statements:
1)if statements
2)if-else statements
3) if-else if statements
4)nested if statements
5)switch statements

Iteration Statements:
-----------------------------------
These statements are used to execute a repetitive task, just put it in the loop
and the job will be done.
Iteration Statements basically have three statements:
1)for loop statements
2)while loop statements
3)do-while loop statements

Jump Statements:
-------------------------------
These are used to either skip the loop statements or come out of it.
Jump Statements basically have two statements:
1)continue statement
2)break statement
Рекомендации по теме
join shbcf.ru