Page 1 of 1

enthuware.ocpjp.v7.2.1609

Posted: Thu Nov 20, 2014 8:55 pm
by ewebxml
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.

Re: enthuware.ocpjp.v7.2.1609

Posted: Thu Apr 30, 2015 6:02 pm
by admin
Regarding the two statements - an absolute path starts with a root component, while the second statement that you've highlighted talks about path having a root component i.e. not necessarily at the beginning.

Re: enthuware.ocpjp.v7.2.1609

Posted: Tue May 05, 2015 12:39 am
by pfilaretov
ok, I see, thank you