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

问题:

[单选]

Which statements, when inserted at the indicated position in the following code, will cause a runtime exception when attempting to run the program?()  
class A {}  
class B extends A {}  
class C extends A {}  
public class Q3ae4 {  
public static void main(String args[]) { 
 A x = new A(); 
 B y = new B();  
C z = new C();  
// insert statement here  
}  
} 

A . x = y;
B . z = x;
C . y = (B) x;
D . z = (C) y;
E . y = (A) y;

库房内有一垛面积为(915x1830)mm2,厚为4mm的胶合板,垛高为2.4m,问共有多少张(板间间隙不考虑)? 关键词海南七日游参加精确匹配,当网民搜索以下哪些词时,会触发推广商户的结果展现:() 海南双飞七日游。 海南三亚一周游。 海南七日游。 海南七日游多少钱。 国际单位制有()精确性、继承性及世界性等优点。 统一性。 简明性。 实用性。 合理性。 某幼儿在与同伴发生冲突后总喜欢讲脏话,这种行为属于()。 “浪漫主义和古典主义在这首音乐中相遇了,最后浪漫主义胜出”评论的作品是() 《第一交响曲》。 《f小调第三号钢琴奏鸣曲》。 《匈牙利舞曲》。 《海顿主题变奏曲》。

Which statements, when inserted at the indicated position in the following code, will cause a runtime exception when attempting to run the program?()  
class A {}  
class B extends A {}  
class C extends A {}  
public class Q3ae4 {  
public static void main(String args[]) { 
 A x = new A(); 
 B y = new B();  
C z = new C();  
// insert statement here  
}  
} 

参考答案:

  参考解析

本题暂无解析

在线 客服