已知如下代码: switch(m) { case 0: System.out.println("Condition0"); case 1: System.out.println("Condition 1"); case 2: System.out.println("Condition 2"); case 3: System.out.println("Condition 3"); break; default: System.out.println("Other cCndition"); } 当m为( )时,"Condition 2"会出现在输出结果中。A.2B.0、1C.0、1、2D.0、1、2、3

已知如下代码: switch(m) { case 0: System.out.println("Condition0"); case 1: System.out.println("Condition 1"); case 2: System.out.println("Condition 2"); case 3: System.out.println("Condition 3"); break; default: System.out.println("Other cCndition"); } 当m为( )时,"Condition 2"会出现在输出结果中。

A.2

B.0、1

C.0、1、2

D.0、1、2、3


相关考题:

给出下面代码片段: public class Test{ public static void main (String args[ ]){ int m; switch(m) { case 0:System.out.println("case 0"); case 1:System.out.println("case 1"):break; case 2: default:System.out.println("default"); } } } 下列m的( )值将引起"default"的输出。A.1B.2C.4D.0

给出下列代码段: public class ex38 { public static void main (String args [ ] ) { int m; switch(m) { case 0: System.out.println ( "case 0" ); case 1:System.out.println("case 1");break; case 2: default: System.out.print in ("default") } } 下列m的______值将引起"default"的输出。A.0B.1C.2D.以上答案都不正确

给出下列的程序段,m为何值时将会输出default? ( ) switch(m) { case 0: System.out.println("case 0"); case 1:System.out.println("case 1");break; case 2:System.out.println("case 2");break; default:System.out.println("default"); }A.0B.1C.2D.3

给出下列的程序代码片段,m为哪个值时将会输出default? switch(m) { case 0:System.out.println("case0"); case 1:System.out.println("case 1");break; case 2:System.out.println("case 2");break; default:System.out.println("default"); }A.0B.1C.2D.3

已知如下代码: switch(m) { case 0: System. out. println("Condition 0 "); case 1: System. out. println("Condition 1 "); case 2: System. out. println("Condition 2 "); case 3: System. out. println("Condition 3 "); break; default: System. out. println("Other Condition"); 当m的值为( )时,可以输出“Condition 2”。A.2B.0,1C.0,1,2D.0,1,2,3

给出下面代码段: public class Test{ public static void main(String args[] ) { int m; switch(m) { case 0: System.out.println("case 0"); case 1: System.out.println("case 1"); break; case 2: break; default: System.out.println("default"); } } } 下列m的值能引起输出“default”的是( )。A.0B.1C.2D.4

给出下面代码段:public class Test{public static void main(String args[]){int m;switch(m){case 0 :System.out.println("case 0");case 1 :System.out.println("case 1");break;case 2 :break;default :System.out.println("default");}}}下列m的值能引起输出“default”的是( )。A.0B.1C.2D.4

对于下面的代码片段,m的哪个值将引起"default"的输出? switch(m){ case 0: System.out.println("case 0"); case 1: System.out.println("case 1"); break; case 2: System.out.println("case 2"); break; default: System.out.println("default"); }A.0B.1C.2D.3

对于下面的代码片段,m的哪个值将引起"default"的输出?() switch(m){ case 0: System.out.println("case 0"); case 0: case 1: System.out.println("case 1"); break; case 2: System.out.println("case 2"); break; default: System.out.println("default"); }A.0B.1C.2D.3