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

问题:

[单选]

1. interface DoStuff2 { 
2. float getRange(int low, int high); } 
3. 
4. interface DoMore { 
5. float getAvg(int a, int b, int c); } 
6. 
7. abstract class DoAbstract implements DoStuff2, DoMore { } 
8. 
9. class DoStuff implements DoStuff2 { 
10. public float getRange(int x, int y) { return 3.14f; } } 
11. 
12. interface DoAll extends DoMore { 
13. float getAvg(int a, int b, int c, int d); } 
What is the result?() 

A .  The file will compile without error.
B .  Compilation fails. Only line 7 contains an error.
C .  Compilation fails. Only line 12 contains an error.
D .  Compilation fails. Only line 13 contains an error.
E .  Compilation fails. Only lines 7 and 12 contain errors.
F .  Compilation fails. Only lines 7 and 13 contain errors.
G .  Compilation fails. Lines 7, 12, and 13 contain errors.

喀斯特石漠化 初中语文综合性学习的内容特点? 采用电阻应变法测量转矩是依据() 转轴受转矩作用时,与轴成45°夹角方向上产生最大应变。 弹性限度内,应力与应变呈线性关系。 作用力与反作用力在同一直线上,大小相等,方向相反。 一个系统不受外力或所受外力矢量和为零,该系统动量守恒。 将投资集中到短期和长期两种工具上,并随市场利率变动而不断调整资金在两者之间的分配比例,该种投资策略属于() 投资三分法。 固定比例投资法。 固定金额投资法。 杠铃投资法。 强力层是胶管的(),是胶管承受压力的部位,因而要求具有一定的强度和刚度。 中心。 核心。 骨架。 基础。

1. interface DoStuff2 { 
2. float getRange(int low, int high); } 
3. 
4. interface DoMore { 
5. float getAvg(int a, int b, int c); } 
6. 
7. abstract class DoAbstract implements DoStuff2, DoMore { } 
8. 
9. class DoStuff implements DoStuff2 { 
10. public float getRange(int x, int y) { return 3.14f; } } 
11. 
12. interface DoAll extends DoMore { 
13. float getAvg(int a, int b, int c, int d); } 
What is the result?() 

参考答案:

  参考解析

本题暂无解析

在线 客服