Question
Which of the following are legal argument types for a switch statement?
- A. byte
- B. int
- C. long
- D. float
- E. char
- F. String
A, B, E, F.
Note
The argument of a switch statement must be a byte, char, short, int, String, or enum.
PreviousNextRelated