易搜题 > 资格证大类 > 计算机编程 > 问题详情
问题详情

1. public class A {  2. public String doit(int x, int y) {  3. return “a”;  4. }  5.  6. public String doit(int... vals) {  7. return “b”;  8. } 9. }  Given:  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.

未找到的试题在搜索页框底部可快速提交,在会员中心"提交的题"查看可解决状态。 收藏该题
查看答案

相关问题推荐

  • 一个".java"源文件中是否可以包括多个类(不是内部类)?有什么限制?

  • 可以综合分析进度、费用以及项目范围的绩效测量技术是()。

    A、帕累托图

    B、挣值分析

    C、趋势分析

    D、统计抽样

  • Which of the following would be the way to prevent the Num Lock LED from being turned on automatically when a laptop is booted? ()

    A、Hold the function Num Lock key down during POST.

    B、Go into the Windows Keyboard applet and deselect the ’Num Lock on boot’ option.

    C、Create a Windows profile to disable the feature during power-on self test (POST).

    D、Turn the feature off in the BIOS.

  • ()就是将两个或两个以上的项目相加,形成新项目。

  • 软件维护的类型有哪几种?其基本概念是什么?

联系客服 会员中心
TOP