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

问题:

[单选]

1. interface A { public void aMethod(); } 
2. interface B { public void bMethod(); } 
3. interface C extends A,B { public void cMethod(); } 
4. class D implements B { 
5. public void bMethod() { } 
6. } 
7. class E extends D implements C { 
8. public void aMethod() { } 
9. public void bMethod() { } 
10. public void cMethod() { } 
11. } 
What is the result?() 

A .  Compilation fails because of an error in line 3.
B .  Compilation fails because of an error in line 7.
C .  Compilation fails because of an error in line 9.
D .  If you define D e = new E(), then e.bMethod() invokes the version of bMethod()defined in Line 5.
E .  If you define D e = (D)(new E()),then e.bMethod() invokes the version of bMethod() defined in Line 5.
F .  If you define D e = (D)(new E()), then e.bMethod() invokes the version of bMethod() defined in Line 9.

英国现行学制可分为二个系统,即()。 学前教育系统。 公共教育系统。 高等教育系统。 基础教育系统。 独立学校系统。 大气污染源主要有哪些? 体现了垂直迁移的具体事例是() 汉语拼音的学习影响英语字母的发音。 "角"的概念的掌握影响"直角"、"平角"等概念的学习。 "石"字的学习影响"磊"字的学习。 在学校形成的爱护公物的习惯影响在校外的行为表现。 下列人物中()不是李斯特的学生。 安东·鲁宾斯坦。 阿劳。 瑞尔蒂亚。 车尔尼。 斜板(管)沉淀池的特点?

1. interface A { public void aMethod(); } 
2. interface B { public void bMethod(); } 
3. interface C extends A,B { public void cMethod(); } 
4. class D implements B { 
5. public void bMethod() { } 
6. } 
7. class E extends D implements C { 
8. public void aMethod() { } 
9. public void bMethod() { } 
10. public void cMethod() { } 
11. } 
What is the result?() 

参考答案:

  参考解析

本题暂无解析

在线 客服