Selection Statements In Java | If | If Else | If Else If | Nested If |Switch Case Statements In JAVA

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

Selection Statements are basically of Five types:

1)if statement
2)if-else statement
3)if else if statement
4)nested if statement
5)switch case statement

if statement
--------------------------
An if the statement we have only if block if the condition is true then the block of code is executed or else it will skip the code.

if-else statement
-----------------------------
An if-else statement we have two blocks if and else, depending on the condition if it is true then the if block is executed or else it will skip the if block and execute the else block.

if else if statement
--------------------------------
An if else if statement we have three different types of blocks if, else if and else, depending on the condition if it is true then the if block is executed or else it will skip the if block and execute the next block of else if in the line,
if all the else if condition and also turned out to be false then else block will be executed

nested if
----------------------
When we have if block and within that, we have another if block then it's called as nested if

switch case
-----------------------
switch case statement basically check the choice that is given and matches it with the cases present within it, if choice match get the match
then that case is executed if none of the case matches then finally default is executed

Query Solved :
1)Types of selection statements
2)What is if statements
3)Flow chart of if statements
4)Implementation of if statements
5)What is if else statements
6)Flow chart of if else statements
7)Implementation of if else statements
8)What is if else if statements
9)Flow chart of if else if statements
10)Implementation of if else if statements
11)What is nested if statements
12)Flow chart of nested if statements
13)Implementation of nested if statements
14)What is switch statements
15)Flow chart of switch statements
16)Implementation of switch statements
Рекомендации по теме
Комментарии
Автор

Thanks bro🔥🔥🔥 its better than cramming things

Karan-yyff
Автор

Best nd easiest way jst like sidhi baat no bkwaas😘

bhartikumari
join shbcf.ru