Easy Tutorial
For Competitive Exams

Which of these statement is correct?

switch statement is more efficient than a set of nested ifs.
two case constants in the same switch can have identical values.
switch statement can only test for equality, whereas if statement can evaluate any type of boolean expression.
it is possible to create a nested switch statements.
Explanation:
No two case constants in the same switch can have identical values.
Share with Friends
Privacy Copyright Contact Us