【单选题】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.
【简答题】They can, in the st form, consist of the opening and closing of a switch. In this case,the closed-switch state can be represented by 1 and the state by 0.
【单选题】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.