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

问题:

[单选]

1.public class Test { 
2.public static void main (String args[]) { 
3.class Foo { 
4.public int i = 3; 
5.} 
6.Object o = (Object) new Foo(); 
7.Foo foo = (Foo)o; 
8.System.out.printIn(foo. i);
9. } 
10.}  
What is the result?()  

A .  Compilation will fail.
B .  Compilation will succeed and the program will print “3”
C .  Compilation will succeed but the program will throw a ClassCastException at line 6.
D .  Compilation will succeed but the program will throw a ClassCastException at line 7.

客户从单纯被动地采购,转为主动参与产品的规划、设计、方案的确定,这体现了客户的() 成功需求。 体验需求。 关系需求。 产品需求。 抖动(Dithering) 为了确定证据的本质属性,司法人员应从哪些方面对证据材料进行审查判断? 面波 搜索引擎惩罚一个网站可能会出现什么表现形式()。 网站收录被删除。 网站核心关键词排名上升,长尾关键词排名下降。 网站长尾关键词排名上升,核心关键词排名下降。 网站百度快照回档。

1.public class Test { 
2.public static void main (String args[]) { 
3.class Foo { 
4.public int i = 3; 
5.} 
6.Object o = (Object) new Foo(); 
7.Foo foo = (Foo)o; 
8.System.out.printIn(foo. i);
9. } 
10.}  
What is the result?()  

参考答案:

  参考解析

本题暂无解析

在线 客服