Multiple Choice
Which of the following can be used in a switch statement in the expression after keyword case?
A. a constant integral expression.
B. a character constant.
C. a String
D. an enumeration constant.
A) A and B.
B) A and C.
C) B and C.
D) All.
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q3: Consider the following two Java code segments:
Q4: For the code segment below:<br> switch(q) {<br>Case
Q5: Suppose variable gender contains MALE and age
Q6: Which statement prints the floating-point value 123.456
Q7: Which of the following statements about a
Q9: Consider the code segment below.<br> if (gender
Q10: Which of the following for-loop headers results
Q11: Which case of the following would warrant
Q12: Which of the following statements about the
Q13: Which of the following is not a