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 3857

Given:
11.    interface DeclareStuff {
12.    public static final int EASY = 3;
13.    void doStuff(int t); }
14.    public class TestDeclare implements DeclareStuff {
15.    public static void main(String [] args) {
16.    int x = 5;
17.    new TestDeclare().doStuff(++x);
18.    }
19.    void doStuff(int s) {
20.    s += EASY + ++s;
21.    System.out.println("s " + s);
22.    }
23.    }
What is the result?

Option A

A. s 14
 

Option B

B.    s 16
 

Option C

C.    s 10
 

Option D

D.    Compilation fails.
 

Correct Answer D
Explanation


Question ID 3858

Click the Exhibit button. Which three code fragments, added individually at line 29, produce the output 100? (Choose three.)
 
 

Option A

A.    n = 100;
 

Option B

B.    i.setX( 100 );
 

Option C

C.    o.getY().setX( 100 );
 

Option D

D.    i = new Inner(); i.setX( 100 );
 

Option E

E.    o.setY( i ); i = new Inner(); i.setX( 100 );
 

Option F

F.    i = new Inner(); i.setX( 100 ); o.setY( i );
 

Correct Answer B,C,F
Explanation

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