Warning: Undefined array key "page" in /home1/bandbozu/getfreedumps.com/quiz.php on line 15
Read Oracle 1z0-851 Real Exam Question & Answers FREE| Page-

AllExam Dumps

DUMPS, FREE DUMPS, VCP5 DUMPS| VMWARE DUMPS, VCP DUMPS, VCP4 DUMPS, VCAP DUMPS, VCDX DUMPS, CISCO DUMPS, CCNA, CCNA DUMPS, CCNP DUMPS, CCIE DUMPS, ITIL, EXIN DUMPS,


READ Free Dumps For Oracle- 1z0-851




Warning: Undefined array key "page" in /home1/bandbozu/getfreedumps.com/mobile/pagenumber.php on line 34



Question ID 3653

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 class to be used with generics and avoid an unchecked warning? (Choose three.)

 

Option A

A.    Remove line 14.
 

Option B

B.    Replace line 14 with "int i = iter.next();".
 

Option C

C.    Replace line 13 with "for (int i : intList) {".
 

Option D

D.    Replace line 13 with "for (Iterator iter : intList) {".
 

Option E

E.    Replace the method declaration with "sum(List<int> intList)".
 

Option F

F.    Replace the method declaration with "sum(List<Integer> intList)".

Correct Answer A,C,F
Explanation


Question ID 3654

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?
 

Option A

A.    java.util.Queue
 

Option B

B.    java.util.ArrayList
 

Option C

C.    java.util.LinearList
 

Option D

D.    java.util.LinkedList
 

Correct Answer D
Explanation


Warning: Undefined array key "page" in /home1/bandbozu/getfreedumps.com/mobile/pagenumber.php on line 34

Send email to admin@getfreedumps for new dumps request!!!