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 3841

Given:
11.    class ClassA {}
12.    class ClassB extends ClassA {}
13.    class ClassC extends ClassA {} and:
21.    ClassA p0 = new ClassA();
22.    ClassB p1 = new ClassB();
23.    ClassC p2 = new ClassC();
24.    ClassA p3 = new ClassB();
25.    ClassA p4 = new ClassC(); Which three are valid? (Choose three.)
 

Option A

A.    p0 = p1;
 

Option B

B.    p1 = p2;
 

Option C

C.    p2 = p4;
 

Option D

D.    p2 = (ClassC)p1;
 

Option E

E.    p1 = (ClassB)p3;
 

Option F

F.    p2 = (ClassC)p4;
 

Correct Answer A,E,F
Explanation


Question ID 3842

Which three statements are true? (Choose three.)

 

Option A

A.    A final method in class X can be abstract if and only if X is abstract.
 

Option B

B.    A protected method in class X can be overridden by any subclass of X.
 

Option C

C.    A private static method can be called only within other static methods in class X.
 

Option D

D.    A non-static public final method in class X can be overridden in any subclass of X.
 

Option E

E.    A public static method in class X can be called by a subclass of X without explicitly referencing the class X.
 

Option F

F.    A method with the same signature as a private final method in class X can be implemented in a subclass of X.

Correct Answer B,E,F
Explanation

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