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));
B & C
Print:
..\..\..\answers\topsecret
..\..\..\answers\topsecret