enthuware.ocpjp.v7.2.1609

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
ewebxml
Posts: 77
Joined: Sun Jun 30, 2013 10:04 pm
Contact:

enthuware.ocpjp.v7.2.1609

Post 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.

admin
Site Admin
Posts: 10389
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: enthuware.ocpjp.v7.2.1609

Post 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.

pfilaretov
Posts: 35
Joined: Mon Jul 28, 2014 2:05 am
Contact:

Re: enthuware.ocpjp.v7.2.1609

Post by pfilaretov »

ok, I see, thank you

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest