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 3889

Given:
11.    public void genNumbers() {
12.    ArrayList numbers = new ArrayList();
13.    for (int i=0; i<10; i++) {
14.    int value = i * ((int) Math.random());
15.    Integer intObj = new Integer(value);
16.    numbers.add(intObj);
17.    }
18.    System.out.println(numbers);
19.    }
Which line of code marks the earliest point that an object referenced by intObj becomes a candidate for garbage collection?
 

Option A

A.    Line 16
 

Option B

B.    Line 17

 

Option C

C.    Line 18
 

Option D

D.    Line 19

Correct Answer D
Explanation


Question ID 3890

Given a correctly compiled class whose source code is:
1.    package com.sun.sjcp;
2.    public class Commander {
3.    public static void main(String[] args) {
4.    // more code here
5.    }
6.    }
Assume that the class file is located in /foo/com/sun/sjcp/, the current directory is /foo/, and that the classpath contains "." (current directory). Which command line correctly runs Commander?
 

Option A

A.    java Commander
 

Option B

B.    java com.sun.sjcp.Commander
 

Option C

C.    java com/sun/sjcp/Commander
 

Option D

D.    java -cp com.sun.sjcp Commander
 

Correct Answer B
Explanation

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