Home » JAVA Programming » Decision Making » Question
  1. Which of these statement is incorrect?
    1. switch statement is more efficient than a set of nested if
    2. switch statement can only test for equality, whereas if statement can evaluate any type of boolean expression
    3. it is possible to create a nested switch statements
    4. two case constants in the same switch can have identical values
    5. None of these
Correct Option: D

No two case constants in the same switch can have identical values.



Your comments will be displayed only after manual approval.