[单项选择题] 给出下列的程序片段,m为()时将会输出default。switch (m)case ():Systemt.out.println("case 0");

[单项选择题] 给出下列的程序片段,m为()时将会输出default。switch (m)case ():Systemt.out.println("case 0");,第1张

[单项选择题] 给出下列的程序片段,m为( )时将会输出default。 switch (m) case ():Systemt.out.println("case 0");

[单项选择题] 给出下列的程序片段,m为( )时将会输出default。

switch (m)

case ():Systemt.out.println("case 0");

case 1: System.out.println("case 1");break;

case 2:System.out.println("case2");break;

default:System.out.println("default");

A.0

B.1

C.2 2

D.3

正确答案:

D

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/5613295.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-15
下一篇 2022-12-15

发表评论

登录后才能评论

评论列表(0条)

保存