Java认证
SCJP认证历年经典考题(6)
日期:2013-10-22 11:44
QuestionNo25
Given:
1.abstractclassabstrctIt{
2.abstractfloatgetFloat();
3.)
4.publicclassAbstractTestextendsAbstractIt{
5.privatefloatf1=1.0f;
6.privatefloatgetFloat(){returnf1;}
7.}
Whatistheresult?
A.Compilationissuccessful.
B.Anerroronline6causesaruntimefailure.
C.Anerroratline6causescompilationtofail.
D.Anerroratline2causescompilationtofail.
Answer:C

QuestionNo26
Exhibit:
1.publicclasstest(
2.publicintaMethod()[
3.staticinti=0;
4.i++;
5.returnI;

1/3 下一页 上一页 首页 尾页

Java认证


返回 刷新 WAP首页 网页版 登录
05/14 01:34