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 3762

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

Option A

A.    B
 

Option B

B.    The code runs with no output.
 

Option C

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

Option D

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

Option E

E.    Compilation fails because of an error in line 18.
 

Correct Answer A
Explanation


Question ID 3763

Given:
1.    public class Venus {
2.    public static void main(String[] args) {
3.    int [] x = {1,2,3};
4.    int y[] = {4,5,6};
5.    new Venus().go(x,y);
6.    }
7.    void go(int[]... z) {
8.    for(int[] a : z)
9.    System.out.print(a[0]);
10.    }
11.    }
What is the result?
 

Option A

A.    1
 

Option B

B.    12
 

Option C

C.    14
 

Option D

D.    123
 

Option E

E.    Compilation fails.
 

Option F

F.    An exception is thrown at runtime.
 

Correct Answer C
Explanation

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