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.
enthuware.ocpjp.v7.2.1609
Moderators: Site Manager, fjwalraven
-
- Posts: 77
- Joined: Sun Jun 30, 2013 10:04 pm
- Contact:
-
- Site Admin
- Posts: 10389
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: enthuware.ocpjp.v7.2.1609
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.
-
- Posts: 35
- Joined: Mon Jul 28, 2014 2:05 am
- Contact:
Re: enthuware.ocpjp.v7.2.1609
ok, I see, thank you
Who is online
Users browsing this forum: No registered users and 38 guests