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 3695

Given:
11.    class A {
12.    public void process() { System.out.print("A,"); }
13.    class B extends A {
14.    public void process() throws IOException {
15.    super.process();
16.    System.out.print("B,");
17.    throw new IOException();
18.    }
19.    public static void main(String[] args) {
20.    try { new B().process(); }
21.    catch (IOException e) { System.out.println("Exception"); }
22.    }
What is the result?
 

Option A

A.    Exception
 

Option B

B.    A,B,Exception
 

Option C

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

Option D

D.    Compilation fails because of an error in line 14.
 

Option E

E.    A NullPointerException is thrown at runtime.
 

Correct Answer D
Explanation


Question ID 3696

Given:
11.    public void go(int x) {
12.    assert (x > 0);
13.    switch(x) {
14.    case 2: ;
15.    default: assert false;
16.    }
17.    }
18.    private void go2(int x) { assert (x < 0); } Which statement is true?
 

Option A

A. All of the assert statements are used appropriately.
 

Option B

B.    Only the assert statement on line 12 is used appropriately.
 

Option C

C.    Only the assert statement on line 15 is used appropriately.
 

Option D

D.    Only the assert statement on line 18 is used appropriately.
 

Option E

E.    Only the assert statements on lines 12 and 15 are used appropriately.
 

Option F

F.    Only the assert statements on lines 15 and 18 are used appropriately.
 

Correct Answer F
Explanation

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