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 3697

Given:
1.    public class Breaker2 {
2.    static String o = "";
3.    public static void main(String[] args) {
4.    z:
5.    for(int x = 2; x < 7; x++) {
6.    if(x==3) continue;
7.    if(x==5) break z;
8.    o = o + x;
9.    }
10.    System.out.println(o);
11.    }
12.    }
What is the result?
 

Option A

A.    2
 

Option B

B.    24
 

Option C

C.    234
 

Option D

D.    246
 

Option E

E.    2346
 

Option F

F.    Compilation fails.
 

Correct Answer B
Explanation


Question ID 3698

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.
 

Option E

E.    An exception is thrown at runtime.
 

Correct Answer D
Explanation

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