What is the result?

Given:

and the code fragment:

What is the result?
A. A compilation error occurs at line n2.
B. A compilation error occurs because the try block doesn’t have a catch or finally block.
C. A compilation error occurs at line n1.
D. The program compiles successfully.

Download Printable PDF. VALID exam to help you PASS.

3 thoughts on “What is the result?

  1. DataConverter needs to implements AutoCloseable
    answer is A
    A compilation error occurs at line n2

Leave a Reply

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


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