Which of the following rules about a default branch in a switch statement are correct? (Choose two.)
Question:
Which of the following rules about a default branch in a switch statement are correct? (Choose two.)
A. A switch statement is required to declare a default statement.
B. A default statement must be placed after all case statements.
C. A default statement can be placed between any case statements.
D. Unlike a case statement, a default statement does not take a parameter value.
E. A switch statement can contain more than one default statement.
F. A default statement can be used only when at least one case statement is present.
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: