Programming - Control Statements - Discussion

You Are Here :: Home > JAVA > Control Statements - Discussion

 



Q.

The ____________ statement is an extension of if statement that provides another option when 'if' statement evaluates to "false" i.e. else block is executed if "if" statement is false.                         


A. nested if statement B. If Statement
C. if-else D. all the above

Answer: Option C
Explaination:

 


The "if-else" statement is an extension of if statement that provides another option when 'if' statement evaluates to "false" i.e. else block is executed if "if" statement is false.




Discussion

Your Comments Goes here...
NameDiscussion