Which two modifications should you make so that the code compiles successfully?

Given the code fragment:

Which two modifications should you make so that the code compiles successfully?

A. Option A
B. Option B
C. Option C
D. Option D
E. Option E

Download Printable PDF. VALID exam to help you PASS.

2 thoughts on “Which two modifications should you make so that the code compiles successfully?

  1. The correct answers are A and C.

    Answer B is incorrect because the order of exceptions should be listed from specific to general:

    try{ xobj.printFileContent(); }
    catch(IOException e){}
    catch(Exception e){}

Leave a Reply

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


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