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 3839

Given:
11.    public static void main(String[] args) {
12.    Integer i = new Integer(1) + new Integer(2);
13.    switch(i) {
14.    case 3: System.out.println("three"); break;
15.    default: System.out.println("other"); break;
16.    }
17.    }
What is the result?
 

Option A

A.    three
 

Option B

B.    other
 

Option C

C.    An exception is thrown at runtime.
 

Option D

D.    Compilation fails because of an error on line 12.
 

Option E

E.    Compilation fails because of an error on line 13.
 

Correct Answer A
Explanation


Question ID 3840

Given:
21.    class Money {
22.    private String country = "Canada";
23.    public String getC() { return country; }
24.    }
25.    class Yen extends Money {
26.    public String getC() { return super.country; }
27.    }
28.    public class Euro extends Money {
29.    public String getC(int x) { return super.getC(); }
30.    public static void main(String[] args) {
31.    System.out.print(new Yen().getC() + " " + new Euro().getC());
32.    }
33.    }
What is the result?
 

Option A

A.    Canada
 

Option B

B.    null Canada
 

Option C

C.    Canada null
 

Option D

D.    Canada Canada
 

Option E

E.    Compilation fails due to an error on line 26.
 

Correct Answer E
Explanation

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