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 3833

Given:
11.    public static void main(String[] args) {
12.    String str = "null";
13.    if (str == null) {
14.    System.out.println("null");
15.    } else (str.length() == 0) {
16.    System.out.println("zero");
17.    } else {
18.    System.out.println("some");
19.    }
20.    }
What is the result?
 

Option A

A.    null
 

Option B

B.    zero
 

Option C

C.    some
 

Option D

D.    Compilation fails.
 

Correct Answer D
Explanation


Question ID 3834

Given:
1.    public class Mule {
2.    public static void main(String[] args) {
3.    boolean assert = true;
4.    if(assert) {
5.    System.out.println("assert is true");
6.    }
7.    }
8.    }
Which command-line invocations will compile?
 

Option A

A.    javac Mule.java
 

Option B

B.    javac -source 1.3 Mule.java
 

Option C

C.    javac -source 1.4 Mule.java
 

Option D

D.    javac -source 1.5 Mule.java
 

Correct Answer B
Explanation

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