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 3701

Given:
10.    public class Foo {
11.    static int[] a;
12.    static { a[0]=2; }
13.    public static void main( String[] args ) {}
14.    }
Which exception or error will be thrown when a programmer attempts to run this code?
 

Option A

A. java.lang.StackOverflowError
 

Option B

B.    java.lang.IllegalStateException
 

Option C

C.    java.lang.ExceptionInInitializerError
 

Option D

D. java.lang.ArrayIndexOutOfBoundsException

Correct Answer C
Explanation


Question ID 3702

Click the Exhibit button. Given:
25.    try {
26.    A a = new A();
27.    a.method1();
28.    } catch (Exception e) {
29.    System.out.print("an error occurred");
30.    }
Which two statements are true if a NullPointerException is thrown on line 3 of class C? (Choose two.)
 

Option A


A.    The application will crash.
 

Option B

B.    The code on line 29 will be executed.
 

Option C

C.    The code on line 5 of class A will execute.
 

Option D

D.    The code on line 5 of class B will execute.
 

Option E

E.    The exception will be propagated back to line 27.
 

Correct Answer B,E
Explanation

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