Which code fragment, when inserted at line n1, enables the code to print /First.txt?

Given the code fragment:

Which code fragment, when inserted at line n1, enables the code to print /First.txt?
A. Path iP = new Paths ("/First.txt");
B. Path iP = Paths.toPath ("/First.txt");
C. Path iP = new Path ("/First.txt");
D. Path iP = Paths.get ("/", "First.txt");

Download Printable PDF. VALID exam to help you PASS.

2 thoughts on “Which code fragment, when inserted at line n1, enables the code to print /First.txt?

Leave a Reply

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


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