您好,欢迎光临本网站![请登录][注册会员]  
文件名称: ocjp题库 1z0-851
  所属分类: Oracle认证
  开发工具:
  文件大小: 8mb
  下载次数: 0
  上传时间: 2013-10-28
  提 供 者: u0114*****
 详细说明: 1z0-851_formatted Number: 000-000 Passing Score: 800 Time Limit: 120 min File Version: 1.0 Oracle 1z0-851 Java Standard Edition 6 Programmer Certified Professional Exam Practice Test Version: 4.2 Oracle 1z0-851: Practice Exam Exam A QUESTION 1 Given a pre-generics implementation of a method: 11. public static int sum(List list) { 12. int sum = 0; 13. for ( Iterator iter = list.iterator(); iter.hasNext(); ) { 14. int i = ((Integer)iter.next()).intValue(); 15. sum += i; 16. } 17. return sum; 18. } What three changes allow the clas s to be used with generics and avoid an unchecked warning? (Choose three.) A. Remove line 14. B. Replace line 14 with "int i = iter.next();". C. Replace line 13 with "for (int i : intList) {". D. Replace line 13 with "for (Iterator iter : intList) {". E. Replace the method declaration with "sum(List intList)". F. Replace the method declaration with "sum(List intList)". Answer: ACF Section: (none) Explanation/Reference: Explanation: QUESTION 2 A programmer has an algorithm that requires a java.util.List that provides an efficient implementation of add(0, object), but does NOT need to support quick random access. What supports these requirements? A. java.util.Queue B. java.util.ArrayList C. java.util.LinearList D. java.util.LinkedList Answer: D Section: (none) Explanation/Reference: Explanation: 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 { C. public class MinMax { D. public class MinMax { E. public class MinMax { F. public class MinMax { ...展开收缩
(系统自动生成,下载前可以参看下载内容)

下载文件列表

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.
 相关搜索: ocjp题库
 输入关键字,在本站1000多万海量源码库中尽情搜索: