多做题,通过考试没问题!

Oracle认证考试

睦霖题库>其他计算机考试>Oracle认证考试

Given a pre-generics implementation of a method: What three changes allow the class to be used with generics and avoid an unchecked warning?()

  • 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)".
正确答案:A,C,E
答案解析:
进入题库查看解析

微信扫一扫手机做题