题目

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.

提示:未搜索到的试题可在搜索页快速提交,您可在会员中心"提交的题"快速查看答案。
答案
查看答案
相关试题

人类一般通过三种学习方式来发展行为,分别是()

A、无意模仿、有意模仿和刻意模仿

B、无意模仿、有意模仿和强迫模仿

C、自愿模仿、强迫模仿和被动模仿

D、自愿模仿、有意模仿和强迫模仿

E、无意模仿、有意模仿和被动模仿

窗体上有一个名称为Command1的命令按钮,事件过程如下:运行程序,并单击命令按钮,窗体上显示的内容为(  )。

A、060

B、260

C、0612

D、2612

厌氧菌感染所致肺炎患者咳()

A、少量白黏痰

B、草绿色痰

C、红棕色胶胨状痰

D、铁锈色痰

E、脓臭痰

In the Java API documentation which sections are included in a class document?()    

A

 The description of the class and its purpose

B

 A list of methods in its super class

C

 A list of member variable

D

 The class hierarchy

吴某,男,40岁,某公司副总经理,由于头晕、胸闷来就诊。平时脾气暴躁,容易发脾气,做事匆忙,常为完成工作而加班,讲话快,对下属要求严格。从致病性行为模式的角度来说,吴某的行为属于()

A、A型行为

B、B型行为

C、C型行为

D、D型行为

E、E型行为

联系我们 会员中心
返回顶部