Which of the following statements about the switch statement is false?

a. You can use Strings in a switch statement’s controlling expression.
b. You can use a String in a switch statement's case label.
c. You can use a comma-separated list of Strings in a switch statement’s case label.
d. You cannot use a String in a switch statement’s default case label.


c. You can use a comma-separated list of Strings in a switch statement’s case label.

Computer Science & Information Technology

You might also like to view...

By default, each document has two layers.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Because all cell phones have a Blogger app built-in, and as long as a phone supports text messaging, blog entries can be posted from a mobile phone

Indicate whether the statement is true or false

Computer Science & Information Technology

The Groove music app organizes audio files into four categories - albums, artists, songs, and styles.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Which of the following is NOT a step in the problem-solving process?

A. Select, implement, and evaluate a solution. B. Analyze and compare possible solutions. C. Build support among management for the candidate solution. D. Gather facts and make assumptions.

Computer Science & Information Technology