欢迎来到求知题库网 求知题库官网
logo
全部科目 > Java认证考试 > SCJP程序员认证考试

多项选择题

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

    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.

点击查看答案&解析

相关考题

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题