Home » Oracle » 1z0-803 » 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
Correct Answer: ADE
Explanation/Reference:
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.
Download Printable PDF. VALID exam to help you PASS.
|
|