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.
DataConverter needs to implements AutoCloseable
answer is A
A compilation error occurs at line n2
A
A