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

问题:

[多选]

10. interface Foo { 
11. int bar(); 
12. } 
13. 
14. public class Beta { 
15. 
16. class A implements Foo { 
17. public int bar() { return 1; } 
18. } 
19. 
20. public int fubar( Foo foo) { return foo.bar(); } 
21. 
22. public void testFoo() { 
23. 
24. class A implements Foo { 
25. public int bar() { return 2; } 
26. } 
27. 
28. System.out.println( fubar( new A()));
29. } 
30. 
31. public static void main( String[] argv) { 
32. new Beta().testFoo(); 
33. } 
34. } 
Which three statements are true?()

A .  Compilation fails.
B .  The code compiles and the output is 2.
C .  If lines 16, 17 and 18 were removed, compilation would fail.
D .  If lines 24, 25 and 26 were removed, compilation would fail.
E .  If lines 16, 17 and 18 were removed, the code would compile and the output would be 2.
F .  If lines 24, 25 and 26 were removed, the code would compile and the output would be 1.

用户提货时发现规格开错,保管员不得随意调换,必须通过()更改或重新开单后方可发货。 库主任。 业务员。 保卫部门。 管理部门。 根据《建设工程施工合同(示范文本)》(GF―2013―0201),应由承包人自行承担责任的情况有()。 经工程师确认的施工组织设计和工程进度计划本身存在的缺陷。 因工程师不及时作出答复,导致承包人无法复工。 影响施工正常进行的检查检验,检查检验结果不合格。 工程师要求的对隐蔽工程的重新检验,检验结果合格。 由于承包人原因造成的工程停工。 举例谈谈《诗经》的主要内容。 建筑装饰装修工程所使用的材料应按设计要求进行()处理。 防火。 防腐。 防水。 防虫。 防锈。 下列商业银行销售管理理财产品(计划)的做法,不正确的是() 向客户推介投资产品服务前,首先调查了解客户,评估客户是否适合购买所推介的产品。 客户评估报告认为某一客户不适宜购买某一产品或计划,但客户仍然要求购买的,商业银行应制定专门的文件,列明商业银行的意见、客户的意愿和其他的必要说明事项,双方签字认可。 向客户说明相关投资风险时,使用通俗易懂的语言,配以必要的示例,说明最不利的投资情形和投资结果。 主动向无相关交易经验的客户推介或销售与衍生交易相关的投资产品。

10. interface Foo { 
11. int bar(); 
12. } 
13. 
14. public class Beta { 
15. 
16. class A implements Foo { 
17. public int bar() { return 1; } 
18. } 
19. 
20. public int fubar( Foo foo) { return foo.bar(); } 
21. 
22. public void testFoo() { 
23. 
24. class A implements Foo { 
25. public int bar() { return 2; } 
26. } 
27. 
28. System.out.println( fubar( new A()));
29. } 
30. 
31. public static void main( String[] argv) { 
32. new Beta().testFoo(); 
33. } 
34. } 
Which three statements are true?()

参考答案:

  参考解析

本题暂无解析

在线 客服