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

问题:

[多选]

Which statements concerning the following code are true?()  
class a {  
public a() {}  
public a(int i) { this(); }  
}  
class b extends a {  
public boolean b(String msg) { return false; } 
 }  
class c extends b 
{  private c() { super(); } 
 public c(String msg) { this(); } 
 public c(int i) {} 
 }  

A . The code will fail to compile.
B . The constructor in a that takes an int as an argument will never be called as a result of constructing an  object of class b or c.
C . Class c has three constructors.
D . Objects of class b cannot be constructed.
E . At most one of the constructors of each class is called as a result of constructing an object of class c.

学前儿童社会教育在幼儿园课程领域中处于核心地位。 新中国成立后第一个新闻职业道德条例是()。 《记者行为准则》。 《记者守则》。 《中国新闻工作者职业道德准则》。 《记者职业规范》。 生产安全事故应急预案的评审,应当注重应急预案的实用性、()等方面。 应急预案的经济性。 基本要素的完整性。 预防措施的针对性。 组织体系的科学性。 响应程序的操作性。 科尔伯格提出的个体道德的发展的三水平六阶段的顺序是可以改变的。 学前儿童的自我评价主要还停留在对自己外部行为的评价上。

Which statements concerning the following code are true?()  
class a {  
public a() {}  
public a(int i) { this(); }  
}  
class b extends a {  
public boolean b(String msg) { return false; } 
 }  
class c extends b 
{  private c() { super(); } 
 public c(String msg) { this(); } 
 public c(int i) {} 
 }  

参考答案: B, C

  参考解析

本题暂无解析

在线 客服