Which of the following statements about the switch statement (as used in Java SE 7) 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.
Correct Answer:
Verified
Q1: Which of the following is equivalent to
Q6: Which of the following statements about the
Q8: For the two code segments below: Segment
Q9: Suppose variable gender is MALE and age
Q10: For the code segment below: switch( q
Q12: Which of the following for-loop control headers
Q13: Counter-controlled repetition requires
A)A control variable and initial
Q15: Consider the code segment below. if (
Q18: To exit out of a loop completely,and
Q19: Which statement prints the floating-point value 123.456
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