Which three are valid types for switch?

Which three are valid types for switch?

Which three are valid types for switch?

A.
int

B.
float

C.
double

D.
integer

E.
String

F.
Float

Explanation:

A switch works with the byte, short, char, and int primitive data types. It also works with
enumerated types the String class, and a few special classes that wrap certain primitive types:
Character, Byte, Short, and Integer.



Leave a Reply 0

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