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

问题:

[单选]

public class Test { 
public static void main(String[] args) { 
int x = 0; 
assert (x > 0) ? “assertion failed” : “assertion passed”; 
System.out.println(“Finished”); 
} 
} 
What is the result?()  

A .  finished
B .  Compilation fails.
C .  An AssertionError is thrown and finished is output.
D .  An AssertionError is thrown with the message “assertion failed”.
E .  An AssertionError is thrown with the message “assertion passed”.

在危机处理过程中,应努力避免信息不对称的情况,在对内、对外两个层面上,保持信息管道的双向畅通。这指的是危机沟通的()。 真诚原则。 信息对称。 快速反应。 核心立场。 土壤圈 下列关于证人资格的表述中正确的是()。 凡是知道案件情况并有作证能力的人,都可以作为证人。 生理上、精神上有缺陷或者年幼,不能辨别是非、不能正确表达的人,不能作为证人。 证人只能是当事人以外知道案件情况的人。 证人在刑事诉讼中没有优先地位。 西方早期的管理思想中,()是最早研究专业化和劳动分工的经学家。 亚当•斯密。 查尔斯•巴比奇。 泰罗。 大卫•李嘉图。 李先生面临两个选择:一是在失去贷款购买一套价值较高的房屋;二是在郊区贷款购买一套面积相同的价值较低的房屋,同时购买一辆家用汽车,汽车无贷款。若比较二者的年成本,应考虑的因素是:()   ①.房屋的维护成本      ②. 购房首付款的机会成本   ③. 贷款的利息费用       ④. 购车款的机会成本  ①②③④。  ①②④。  ②③④。  ①③。

public class Test { 
public static void main(String[] args) { 
int x = 0; 
assert (x > 0) ? “assertion failed” : “assertion passed”; 
System.out.println(“Finished”); 
} 
} 
What is the result?()  

参考答案:

  参考解析

本题暂无解析

在线 客服