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
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.
0
Study from book nijnam. Don't waste time.