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 3760

Click the Exhibit button. Given:
31.    public void method() {
32.    A a = new A();
33.    a.method1();
34.    }
Which statement is true if a TestException is thrown on line 3 of class B?
 
 
 

Option A

A.    Line 33 must be called within a try block.
 

Option B

B.    The exception thrown by method1 in class A is not required to be caught.

 

Option C

C.    The method declared on line 31 must be declared to throw a RuntimeException.
 

Option D

D.    On line 5 of class A, the call to method2 of class B does not need to be placed in a try/catch
block.

Correct Answer B
Explanation


Question ID 3761

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.
 

Option E

E.    A NumberFormatException occurs at runtime.
 

Option F

F. An IllegalStateException occurs at runtime.
 

Correct Answer D
Explanation

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