0

What is the use of if else statement in Java programming

I want to get knowledge about it and get good numbers in my examination

18th Feb 2018, 4:24 AM
Nijnam Dwivedi
2 Answers
+ 10
Definition and Usage. The if/else statementexecutes a block of code if a specifiedcondition is true. If the condition is false, another block of code can be executed. Theif/else statement is a part of Java 's "Conditional" Statements, which are used to perform different actions based on different conditions.
18th Feb 2018, 5:07 AM
Abhivarshini Maddala
Abhivarshini Maddala - avatar
0
Study from book nijnam. Don't waste time.
19th Feb 2018, 4:02 PM
Ritesh Singh
Ritesh Singh - avatar