Menu
Question Index
...

Which of the following statements is true.

  • 1. for every 'if' there should be an 'else'.
  • 2. for every 'else' there should be an 'if'.
  • 3. 'if' block can exist without an 'else'.
  • 4. 'if' condition can be used inside another 'if' condition.


Only 2, 3 and 4 are true.
All of the statements are true.
Only 2 and 3 are true.
Only 3 is true.

Doubts

Problems

Topic: Nested if Statements In Java

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App