欢迎来到求知题库网 求知题库官网
logo
全部科目 > Java认证考试 > Java认证考试综合练习

多项选择题

10.publicclassBar{
11.staticvoidfoo(int...x){
12.//insertcodehere
13.}
14.}
Which two code fragments,inserted independently at line1 2,will allow the class to compile()

    A.foreach(x)System.out.println(z);
    B.for(intz:x)System.out.println(z);
    C.while(x.hasNext())System.out.println(x.next());
    D.for(inti=0;i

点击查看答案&解析

相关考题

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题