Which expressions about enums used in switch statements are correct? (Choose two.) A. The name of the
Question:
Which expressions about enums used in switch statements are correct? (Choose two.)
A. The name of the enum type must not be used in each case statement.
B. A switch statement that takes a enum value may not use ordinal() numbers as case statement matching values.
C. The name of the enum type must be used in each case statement.
D. Every value of the enum must be present in a case statement.
E. A switch statement that takes a enum value can use ordinal() numbers as case statement matching values.
F. Every value of the enum must be present in a case statement unless a default branch is provided.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
OCP Oracle Certified Professional Java SE 11 Developer Practice Tests Exam 1Z0 819 And Upgrade Exam 1Z0 817
ISBN: 9781119696131
1st Edition
Authors: Scott Selikoff, Jeanne Boyarsky
Question Posted: