Which statement is true about the switch statement?

Which statement is true about the switch statement?

Which statement is true about the switch statement?

A.
It must contain the default section.

B.
The break statement, at the end of each case block, is mandatory.

C.
Its case label literals can be changed at runtime.

D.
Its expression must evaluate to a single value.

Explanation:
http://www.dummies.com/programming/java/switch-statements-in-java/



Leave a Reply 2

Your email address will not be published. Required fields are marked *