In this lecture we are discussing Java If-else Statement:
if statement:
- It executes the if block if condition is true.
if-else statement:
- It executes the if block if condition is true otherwise else block is executed.
if-else-if ladder:
- It executes one condition from multiple if statements.
Nested if statement:
- It represents the if block within another if block. Here, the inner if block
condition executes only when outer if block condition is true.