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

问题:

[单选]

interface foo {  
int k = 0;  
}   
public class test implements Foo ( 
 public static void main(String args) (  
 int i;  
Test test = new test (); 
 i= test.k;  
i= Test.k;  
i= Foo.k;  
)  
)  
What is the result? ()

A .  Compilation succeeds.
B .  An error at line 2 causes compilation to fail.
C .  An error at line 9 causes compilation to fail.
D .  An error at line 10 causes compilation to fail.
E .  An error at line 11 causes compilation to fail.

分层控制的最大优点就是能够保证组织的整体一致性。 在国际货物买卖中,如何正确掌握成交数量? 零基预算是将前一时期预算水平作为下一时期预算编制的影响因素加以考虑。 国际标准化组织提出的OSI参考模型共分()层。 5。 6。 7。 8。 安全生产监督机构和安全生产监督员应当经过有关单位考核合格,负责考核的单位为()。 水利部。 水利工程协会。 地方水行政主管部门。 流域管理机构。

interface foo {  
int k = 0;  
}   
public class test implements Foo ( 
 public static void main(String args) (  
 int i;  
Test test = new test (); 
 i= test.k;  
i= Test.k;  
i= Foo.k;  
)  
)  
What is the result? ()

参考答案:

  参考解析

本题暂无解析

在线 客服