ocjp考前复习-最新

时间:2015-08-04 10:24:23
【文件属性】:

文件名称:ocjp考前复习-最新

文件大小:8.87MB

文件格式:PDF

更新时间:2015-08-04 10:24:23

ocjp

QUESTION 3 Given: 11. // insert code here 12. private N min, max; 13. public N getMin() { return min; } 14. public N getMax() { return max; } 15. public void add(N added) { 16. if (min == null || added.doubleValue() < min.doubleValue()) 17. min = added; 18. if (max == null || added.doubleValue() > max.doubleValue()) 19. max = added; 20. } 21. } Which two, inserted at line 11, will allow the code to compile? (Choose two.) A. public class MinMax<?> { B. public class MinMax<? extends Number> { C. public class MinMax { D. public class MinMax { E. public class MinMax<? extends Object> { F. public class MinMax { Answer: DF Section: (none) Explanation/Reference: Explanation:


网友评论