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 3661

Given:
5.    class Atom {
6.    Atom() { System.out.print("atom "); }
7.    }
8.    class Rock extends Atom {
9.    Rock(String type) { System.out.print(type); }
10.    }
11.    public class Mountain extends Rock {
12.    Mountain() {
13.    super("granite ")
14.    new Rock("granite ");
15.    }
16.    public static void main(String[] a) { new Mountain(); }
17.    }
What is the result?
 

Option A

A.    Compilation fails.
 

Option B

B.    atom granite
 

Option C

C.    granite granite
 

Option D

D.    atom granite granite
 

Option E

E.    An exception is thrown at runtime.
 

Option F

F.    atom granite atom granite
 

Correct Answer F
Explanation


Question ID 3662

Click the Exhibit button. Which three statements are true? (Choose three.)
 
 

Option A

A.    Compilation fails.
 

Option B

B.    The code compiles and the output is 2.
 

Option C

C.    If lines 16, 17 and 18 were removed, compilation would fail.
 

Option D

D.    If lines 24, 25 and 26 were removed, compilation would fail.
 

Option E

E.    If lines 16, 17 and 18 were removed, the code would compile and the output would be 2.
 

Option F

F.    If lines 24, 25 and 26 were removed, the code would compile and the output would be 1.
 

Correct Answer B,E,F
Explanation

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