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 3724

Given:            
10. interface A { void x(); }            
11.    class B implements A { public void x() {} public void y() {} }
12.    class C extends B { public void x() {} } And:
20.    java.util.List<A> list = new java.util.ArrayList<A>();
21.    list.add(new B());
22.    list.add(new C());
23.    for (A a : list) {
24.    a.x();
25.    a.y();
26.    }
What is the result?
 

Option A

A. The code runs with no output.
 

Option B

B.    An exception is thrown at runtime.
 

Option C

C.    Compilation fails because of an error in line 20.
 

Option D

D.    Compilation fails because of an error in line 21.
 

Option E

E.    Compilation fails because of an error in line 23.
 
 

Option F

F. Compilation fails because of an error in line 25.
 

Correct Answer F
Explanation


Question ID 3725

Given:
11.    class Mammal { }
12.    
13.    class Raccoon extends Mammal {
14.    Mammal m = new Mammal();
15.    }
16.    
17.    class BabyRaccoon extends Mammal { } Which four statements are true? (Choose four.)
 

Option A

A.    Raccoon is-a Mammal.
 

Option B

B.    Raccoon has-a Mammal.
 

Option C

C.    BabyRaccoon is-a Mammal.
 

Option D

D.    BabyRaccoon is-a Raccoon.
 

Option E

E.    BabyRaccoon has-a Mammal.
 

Option F

F.    BabyRaccoon is-a BabyRaccoon.
 

Correct Answer A,B,C,F
Explanation

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