Chapter 14. Answer Key for Sample Test One
1. B
2. A, B
3. B
4. A
5. B
6. A
7. B, D
8. A
9. A, B
10. B, C
11. A, B
12. A, B
13. A
14. A, C, D
15. B
16. B, C, D
17. A
18. B
19. C
20. B, C
21. A
22. A, C
23. B
24. C
25. B
26. B
27. B
28. C
29. A
30. B
31. C
32. C
33. A, B, D
34. A
35. C
36. A, B
37. B
38. B
39. A, B
40. A, C, D
41. B, D, E
42. C
43. A
44. D, E
45. B
46. A
47. A, C
48. B
49. C
50. C
51. C
52. B
53. A, B, C
54. A
55. A
56. B
57. C
58. A, B, C
59. A
60. B, E
61. A, D
A1: | Answer B is correct. The DerivedDemo class does not define a constructor; the compiler expects to find a default constructor in the Demo class. The expected form of a default constructor is one with no arguments (which you don't have in the Demo class), causing a ... |
Get Java 2™ Programmer Exam Cram™ 2 (Exam CX-310-035) now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.