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 3786

Given:
11.    class Snoochy {
12.    Boochy booch;
13.    public Snoochy() { booch = new Boochy(this); }
14.    }
15.    
16.    class Boochy {
17.    Snoochy snooch;
18.    public Boochy(Snoochy s) { snooch = s; }
19.    } And the statements:
21.    public static void main(String[] args) {
22.    Snoochy snoog = new Snoochy();
23.    snoog = null;
24.    // more code here
25.    }
Which statement is true about the objects referenced by snoog, snooch, and booch immediately after line 23 executes?
 

Option A

A.    None of these objects are eligible for garbage collection.
 

Option B

B.    Only the object referenced by booch is eligible for garbage collection.
 

Option C

C.    Only the object referenced by snoog is eligible for garbage collection.
 

Option D

D.    Only the object referenced by snooch is eligible for garbage collection.
 

Option E

E.    The objects referenced by snooch and booch are eligible for garbage collection.
 

Correct Answer E
Explanation


Question ID 3787

Given:
3.    public class Batman {
4.    int squares = 81;
5.    public static void main(String[] args) {
6.    new Batman().go();
7.    }
8.    void go() {
9.    incr(++squares);
10.    System.out.println(squares);
11.    }
12.    void incr(int squares) { squares += 10; }
13.    }
What is the result?
 

Option A

A. 81
 

Option B

B.    82
 

Option C

C.    91
 

Option D

D.    92

Correct Answer B
Explanation

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