What is the result?

Given:

and

What is the result?
A. A NullPointerException is thrown at run time.
B. The compilation fails.
C. 1 Null null
D. 1
1
1
E. A ClassCastException is thrown at run time.

Download Printable PDF. VALID exam to help you PASS.

2 thoughts on “What is the result?

  1. Answer is B.
    there is a round bracket in the words declaration instead of curly braces. That will generate compilation error.

    5
    1

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.