Which of the following statements about the switch statement is false?
A) You can use Strings in a switch statement's controlling expression.
B) You can use a String in a switch statement's case label.
C) You can use a comma-separated list of Strings in a switch statement's case label.
D) You cannot use a String in a switch statement's default case label.
Correct Answer:
Verified
Q1: Which of the following is equivalent to
Q2: Which of the following statements about a
Q3: Which formatting flag indicates that the floating-point
Q4: Consider the following two Java code segments:
Q6: Which of the following statements about the
Q7: For the two code segments below:
Segment
Q8: Consider the code segment below.
if (gender
Q9: Which of the following can be used
Q10: Which of the following statements about the
Q11: The control variable of a counter-controlled loop
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents