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





Question ID 3918

Given:
11.    public static Iterator reverse(List list) {
12.    Collections.reverse(list);
13.    return list.iterator();
14.    }
15.    public static void main(String[] args) {
16.    List list = new ArrayList();
17.    list.add("1"); list.add("2"); list.add("3");
18.    for (Object obj: reverse(list))
19.    System.out.print(obj + ", ");
20.    }
What is the result?
 
 

Option A

A.    3, 2, 1,
 

Option B

B.    1, 2, 3,
 

Option C

C.    Compilation fails.
 

Option D

D.    The code runs with no output.
 

Correct Answer C
Explanation


Question ID 3919

Given:
11.    public class Test {
12.    public static void main(String [] args) {
13.    int x = 5;
14.    boolean b1 = true;
15.    boolean b2 = false;
16.    
17.    if ((x == 4) && !b2 )
18.    System.out.print("1 ");
19.    System.out.print("2 ");
20.    if ((b2 = true) && b1 )
21.    System.out.print("3 ");
22.    }
23.    }
What is the result?

Option A

A. 2
 

Option B

B.    3
 

Option C

C.    1 2
 

Option D

D.    2 3
 

Option E

E.    1 2 3
 

Correct Answer D
Explanation

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