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 3699

Given:
11.    public class Test {
12.    public static void main(String [] args) {
13.    int x = 5;
14.    boolean b1 = true;
15.    boolean b2 = false;
16.    
17.    if ((x == 4) && !b2 )
18.    System.out.print("1 ");
19.    System.out.print("2 ");
20.    if ((b2 = true) && b1 )
21.    System.out.print("3 ");
22.    }
23.    }
What is the result?
 

Option A

A. 2
 

Option B

B.    3
 

Option C

C.    1 2
 

Option D

D.    2 3
 

Option E

E.    1 2 3
 

Option F

F.    Compilation fails.

Correct Answer D
Explanation


Question ID 3700

Given:
11.    static void test() throws Error {
12.    if (true) throw new AssertionError();
13.    System.out.print("test ");
14.    }
15.    public static void main(String[] args) {
16.    try { test(); }
17.    catch (Exception ex) { System.out.print("exception "); }
18.    System.out.print("end ");
19.    }
What is the result?

Option A

A. end
 

Option B

B.    Compilation fails.
 

Option C

C.    exception end
 

Option D

D.    exception test end
 

Option E

E.    A Throwable is thrown by main.
 

Option F

F.    An Exception is thrown by main.
 

Correct Answer E
Explanation

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