题目内容

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.
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.

查看答案
更多问题

铝合金的特点有()

A. 轻质高强
B. 弹性模量大
C. 耐腐蚀性好
D. 低温性能好
E. 密度小

以下哪些情况,员工应当主动上前劝阻()

A. 列车即将关门时,乘客要抢上时
B. 小孩子在站台上追逐奔跑、打闹时
C. 候车乘客占用盲道时
D. 候车乘客依靠屏蔽门时

具有补益肺、脾、肾三脏功效的药物是()

A. 补骨脂
B. 益智仁
C. 天门冬
D. 山药
E. 西洋参

可否让已造成污染的化工单位立即停止侵害?

答案查题题库