Vidyalelo
Java Programming · Q71

Operators

Programming · Java Programming · question 71

Q71

Which of this statement is incorrect?

A.
switch statement is more efficient than a set of nested ifs
B.
two case constants in the same switch can have identical values
Answer
C.
switch statement can only test for equality, whereas if statement can evaluate any type of boolean expression
D.
it is possible to create a nested switch statements

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board