首页 试题广场 > 试题详情
多选题

You have the following code.Which numbers will cause “Test2” to  be printed? switch (x){    case 1: System.out.println("Test1");    case 2:    case 3:? ?     System.out.println("Test2");? ?     break;    default:    System.out.println("Test3");    break;}

  • A.1
  • B.2
  • C.3
  • D.4
提交并查看答案
下一题 上一题
Ke星伙伴们的回答/ 59个回答
关闭
关闭
QQ
交流群
邀请
好友
App
下载
意见
反馈
返回
顶部