Write short notes on :
1. if statement
2. if-else statement
3. Nested if
50 points (:
Answers
Answered by
18
Answer:
If statement :
The Java if statement is the most simple decision making statement. It is used to decide whether a certain statement and block of statements will be executed
If else statement :
The if statement executes a certain section of code if the test expression is evaluated to true. Statements inside the body of else block are executed if the test expression is evaluated to false .
Nested if:
A nested if is an if statement that is the target of another if or else. Nested if statements means an if statement inside an if statement.
Answered by
1
Answer:
Aloha !
3) Nested if statement :-
The if statement which lies inside another if statement.
Thank you
Similar questions
Math,
5 months ago
Physics,
5 months ago
Accountancy,
5 months ago
Biology,
10 months ago
Psychology,
10 months ago
Sociology,
1 year ago
English,
1 year ago