Write short notes on :
1. if statement
2. if-else statement
3. Nested if
50 points (:
Share
Write short notes on :
1. if statement
2. if-else statement
3. Nested if
50 points (:
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
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.
Answer:
Aloha !
3) Nested if statement :-
The if statement which lies inside another if statement.
Thank you