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 3756

Given:
11.    Float pi = new Float(3.14f);
12.    if (pi > 3) {
13.    System.out.print("pi is bigger than 3. ");
14.    }
15.    else {
16.    System.out.print("pi is not bigger than 3. ");
17.    }
18.    finally {
19.    System.out.println("Have a nice day.");
20.    }
What is the result?
 

Option A

A.    Compilation fails.
 

Option B

B.    pi is bigger than 3.
 

Option C

C.    An exception occurs at runtime.
 

Option D

D.    pi is bigger than 3. Have a nice day.
 

Option E

E.    pi is not bigger than 3. Have a nice day.
 

Correct Answer A
Explanation


Question ID 3757

Given:
11. public static void main(String[] args) {
12. try {
13. args = null;
14. args[0] = "test";
15. System.out.println(args[0]);
16. } catch (Exception ex) {
17. System.out.println("Exception");
18. } catch (NullPointerException npe) {
19. System.out.println("NullPointerException");
20. }
21. }
What is the result?
 

Option A

A.    test

 

Option B

B.    Exception
 

Option C

C.    Compilation fails.
 

Option D

D.    NullPointerException

Correct Answer C
Explanation

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