Which two statements print ……answerstopsecret?

Given:
Path p1 = Paths.get(“/scratch/exam/topsecret/answers”);
Path p2 = Paths.get(“/scratch/exam/answers/temp.txt”);
Path p3 = Paths.get(“/scratch/answers/topsecret”);
Which two statements print ……answerstopsecret? (Choose two.)
A. System.out.print(p3.relativize(p1));
B. System.out.print(p2.relativize(p3));
C. System.out.print(p1.relativize(p3));
D. System.out.print(p3.relativize(p2));
E. System.out.print(p1.relativize(p2));
F. System.out.print(p2.relativize(p1));

Download Printable PDF. VALID exam to help you PASS.

One thought on “Which two statements print ……answerstopsecret?

Leave a Reply

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


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