移动端

  • 题王微信公众号

    题王微信公众号

    微信搜“题王网”真题密题、最新资讯、考试攻略、轻松拿下考试

多选题

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?()

发布日期:2022-06-04

Assume that country is set for each class.  Given:...
A

Yen returns correct values.

B

Euro returns correct values.

C

An exception is thrown at runtime.

D

Yen and Euro both return correct values.

E

Compilation fails because of an error at line 25.

F

Compilation fails because of an error at line 30.

标签: "暂无标签"

题王网让考试变得更简单

扫码关注题王,更多免费功能准备上线!