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.
-
()就是将两个或两个以上的项目相加,形成新项目。
-
软件维护的类型有哪几种?其基本概念是什么?