enthuware.ocpjp.v7.2.1609
Posted: Thu Nov 20, 2014 8:55 pm
In this diagram, should it say
"test2.txt" instead of text2.txt for the file on the right hand side.
c:\
|
|
temp
|
________________
test1.txt text2.txt
The options in the question make use of test2.txt as in
a. p1.resolve("test2.txt");
b. p1.relativize("c:\\temp\\test2.txt");
c. p1.resolveSibling("test2.txt");
d. p1.relativize(Paths.get("test2.txt"));
This is for the OCJP7 (1Z0-804) exam.
Please confirm.
"test2.txt" instead of text2.txt for the file on the right hand side.
c:\
|
|
temp
|
________________
test1.txt text2.txt
The options in the question make use of test2.txt as in
a. p1.resolve("test2.txt");
b. p1.relativize("c:\\temp\\test2.txt");
c. p1.resolveSibling("test2.txt");
d. p1.relativize(Paths.get("test2.txt"));
This is for the OCJP7 (1Z0-804) exam.
Please confirm.