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

单项选择题

1.public classA{
2.public String doit(intx,inty){
3.return"a";
4.}
5.
6.public String doit(int...vals){
7.return"b";
8.}
9.}
And:
25.A a=new A();
26.System.out.println(a.doit(4,5));
What is the result?()

A.Line 26 prints "a" to System.out.
B.Line 26 prints "b" to System.out.
C.An exception is thrown at line 26 at runtime.
D.Compilation of class A will fail due to an error in line 6.

点击查看答案&解析
微信小程序免费搜题
微信扫一扫,加关注免费搜题

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