当前位置:SCJP程序员认证考试题库

问题:

[单选]

1. public interface A { 
2. public void doSomething(String thing); 
3. } 
1. public class AImpl implements A { 
2. public void doSomething(String msg) { } 
3. } 
1. public class B { 
2. public A doit() { 
3. // more code here 
4. } 
5. 
6. public String execute() {
7. // more code here 
8. } 
9. } 
1. public class C extends B { 
2. public AImpl doit() {
 3. // more code here 
4. } 
5. 
6. public Object execute() { 
7. // more code here 
8. } 
9. } 
Which statement is true about the classes and interfaces in the exhibit?() 

A .  Compilation will succeed for all classes and interfaces.
B .  Compilation of class C will fail because of an error in line 2.
C .  Compilation of class C will fail because of an error in line 6.
D .  Compilation of class AImpl will fail because of an error in line 2.

原始证据是指直接来源于()、()的证据。 维尔达夫斯基最著名的代表作是()。 《预算过程的政治》。 《贫穷国家的计划与预算》。 《编制预算:预算过程的比较理论》。 《管理的实践》。 四善 P级内径不大于450mm的砂型离心铸铁管的试验压力是()。 1.5MPa。 2.0MPa。 2.5MPa。 3.0MPa。 言词证据的收集方法主要是()、()。

1. public interface A { 
2. public void doSomething(String thing); 
3. } 
1. public class AImpl implements A { 
2. public void doSomething(String msg) { } 
3. } 
1. public class B { 
2. public A doit() { 
3. // more code here 
4. } 
5. 
6. public String execute() {
7. // more code here 
8. } 
9. } 
1. public class C extends B { 
2. public AImpl doit() {
 3. // more code here 
4. } 
5. 
6. public Object execute() { 
7. // more code here 
8. } 
9. } 
Which statement is true about the classes and interfaces in the exhibit?() 

参考答案:

  参考解析

本题暂无解析

在线 客服