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