【单选题】6 Q3: 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.
【单选题】Q2:{ For the code segment below: switch(q) { case 1: System.out.println("apple"); break; case 2: System.out.println("orange"); break; case 3: System.out.println("banana"); break; case 4: System.out.pr...
A.
2.
B.
Any integer less than 1 and greater than or equal to 4.