阿摩線上測驗 登入

試題詳解

試卷:無年度 - SCJP 6.0 認證教戰手冊第二版 SCJP 6.0 認證教戰手冊第二版 認證教戰手冊第二版_題庫 151-200#83081 | 科目:OJCP(SCJP)

試卷資訊

試卷名稱:無年度 - SCJP 6.0 認證教戰手冊第二版 SCJP 6.0 認證教戰手冊第二版 認證教戰手冊第二版_題庫 151-200#83081

科目:OJCP(SCJP)

188 
5e4de3d452b67.jpg
What three changes allow the class to be used with generics and avoid an unchecked warning? (Choose three.)  
 1. Remove line 14. 
 2. Replace line 14 with "int i = iter.next();". 
 3. Replace line 13 with "for(int i : intList){". 
 4. Replace line 13 with "for(Iterator iter : intList){".  
 5. Replace the method declaration with "sum(List<int> intList)". 
 6. Replace the method declaration with "sum(List<Integer> intList)".
(A) 123
(B) 246
(C) 136
(D) 456
正確答案:登入後查看