题目内容

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”
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.

查看答案
更多问题

生源地信用助学贷款的特性是()。

A. 它是一种信用贷款,无抵压、无担保
B. 贷款按年度申请、审批和发放
C. 贷款期限原则上按全日制本专科学制加10年确定,最长不超过14年
D. 贷款利率执行中国人民银行同期公布的同档次基准利率,不上浮

对测定结果,精密度高的准确度一定高

A. 正确
B. 错误

发生乙炔燃烧时,应用干粉灭火器灭火。

A. 正确
B. 错误

在全世界范围内,域名是网状结构,这个网状结构称为域名空间。

A. 正确
B. 错误

答案查题题库