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

问题:

[单选]

public class Test {  
public static void main (String args) {  
class Foo {  
public int i = 3; 
}  
Object o = (Object) new Foo();  
Foo foo = (Foo)o;  
System.out.printIn(foo. i); 
}  
}  
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.

无罪推定是一种典型的推论推定。 动态测功时,节气门的开度为() 全开。 半开。 全闭。 任意角度。 检定结果通知书是指声明计量器具()有关法定要求的文件。 符合。 不符合。 很符合。 不是很符合。 小王和小李是同一个团队的成员,他们两个经常在一些问题上产生不同的意见,但是他们总是能够以一种实事求是的方式公开表达不同的观点和看法,并相互尊重各自的观点。小王和小李之间的冲突属于()冲突。 不健康。 破坏性。 建设性。 公开性。 某团队因为项目任务责任的问题,成员之间存在大量的冲突,这种情况很可能是因为() 团队成员参与不够。 团队成员素质差。 成员技术水平低。 团队成员之间没有足够的信任。

public class Test {  
public static void main (String args) {  
class Foo {  
public int i = 3; 
}  
Object o = (Object) new Foo();  
Foo foo = (Foo)o;  
System.out.printIn(foo. i); 
}  
}  
What is the result?()  

参考答案:

  参考解析

本题暂无解析

在线 客服