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

问题:

[单选]

11. class Person { 
12. String name = “No name‟; 
13. public Person(String nm) { name = nm; } 
14. } 
15. 
16. class Employee extends Person { 
17. String emplD = “0000”; 
18. public Employee(String id) { empID = id; } 
19. } 
20. 
21. public class EmployeeTest { 
22. public static void main(String[] args) { 
23. Employee e = new Employee(”4321”); 
24. System.out.println(e.empID); 
25. } 
26. } 
What is the result?() 

A .  4321
B .  0000
C .  An exception is thrown at runtime.
D .  Compilation fails because of an error in line 18.

谚文 农民为农作物施肥的主要目的是为植物的生长提供() 糖类。 蛋白质。 无机盐。 土壤微生物。 我国刑事诉讼、民事诉讼和行政诉讼中使用基本一致的证明标准,即(),()。 “返本开新” 按降水的物态,垂直降水可分为雨、雪、()、霰。 霜。 雾。 雹。 凇。

11. class Person { 
12. String name = “No name‟; 
13. public Person(String nm) { name = nm; } 
14. } 
15. 
16. class Employee extends Person { 
17. String emplD = “0000”; 
18. public Employee(String id) { empID = id; } 
19. } 
20. 
21. public class EmployeeTest { 
22. public static void main(String[] args) { 
23. Employee e = new Employee(”4321”); 
24. System.out.println(e.empID); 
25. } 
26. } 
What is the result?() 

参考答案:

  参考解析

本题暂无解析

在线 客服