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 3736

Given:
11.    public class Commander {
12.    public static void main(String[] args) {
13.    String myProp = /* insert code here */
14.    System.out.println(myProp);
15.    }
16.    }
and the command line: java -Dprop.custom=gobstopper Commander Which two, placed on line 13, will produce the output gobstopper? (Choose two.)
 

Option A

A.    System.load("prop.custom");
 

Option B

B.    System.getenv("prop.custom");
 

Option C

C.    System.property("prop.custom");
 

Option D

D.    System.getProperty("prop.custom");
 

Option E

E.    System.getProperties().getProperty("prop.custom");
 

Correct Answer D,E
Explanation


Question ID 3737

Given:
3.    public class Spock {
4.    public static void main(String[] args) {
5.    Long tail = 2000L;
6.    Long distance = 1999L;
7.    Long story = 1000L;
8.    if((tail > distance) ^ ((story * 2) == tail))
9.    System.out.print("1");
10.    if((distance + 1 != tail) ^ ((story * 2) == distance))
11.    System.out.print("2");
12.    }
13.    }
What is the result?
 

Option A

A.    1
 

Option B

B.    2
 

Option C

C.    12
 

Option D

D.    Compilation fails.
 

Option E

E.    No output is produced.
 

Option F

F.    An exception is thrown at runtime.
 

Correct Answer E
Explanation

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