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 3835

Given:
11.    static void test() {
12.    try {
13.    String x = null;
14.    System.out.print(x.toString() + " ");
15.    }
16.    finally { System.out.print("finally "); }
17.    }
18.    public static void main(String[] args) {
19.    try { test(); }
20.    catch (Exception ex) { System.out.print("exception "); }
21. }
What is the result?
 

Option A

A.    null
 

Option B

B.    finally
 

Option C

C.    null finally
 

Option D

D.    Compilation fails.
 

Option E

E.    finally exception
 

Correct Answer E
Explanation


Question ID 3836

Given:
1.    public class Boxer1{
2.    Integer i;
3.    int x;
4.    public Boxer1(int y) {
5.    x = i+y;
6.    System.out.println(x);
7.    }
8.    public static void main(String[] args) {
9.    new Boxer1(new Integer(4));
10.    }
11.    }
What is the result?
 

Option A

A. The value "4" is printed at the command line.
 

Option B

B.    Compilation fails because of an error in line 5.
 

Option C

C.    Compilation fails because of an error in line 9.
 

Option D

D.    A NullPointerException occurs at runtime.
 

Correct Answer D
Explanation

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