单项选择题
A. Compilation fails due to an error in line 23.
B. Compilation fails due to an error in line 29.
C. A ClassCastException occurs in line 29.
D. A ClassCastException occurs in line 31.
E. The value of all four objects prints in natural order.
单项选择题 public class Person { private name; public Person(String name) { this.name = name; } public int hashCode() { return 420; } } Which is true?()
单项选择题 WhichManclassproperlyrepresentstherelationship“ManhasabestfriendwhoisaDog”?()
多项选择题 Assume that country is set for each class. Given: 10. public class Money { 11. private String country, name; 12. public getCountry() { return country; } 13.} and: 24. class Yen extends Money { 25. public String getCountry() { return super.country; } 26. } 27. 28. class Euro extends Money { 29. public String getCountry(String timeZone) { 30. return super.getCountry(); 31. } 32. } Which two are correct?()