About Question enthuware.ocpjp.v8.2.1652 :

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
brunesto
Posts: 3
Joined: Thu Aug 25, 2016 4:36 am
Contact:

About Question enthuware.ocpjp.v8.2.1652 :

Post by brunesto »

The implementation provided in the explanation will only work for leaves in the directory tree, but not for any directory that contains sub directories, because the count variable is reset every time it enters a new directory.

from the javadoc:
postVisitDirectory(T dir, IOException exc)
Invoked for a directory after entries in the directory, *and all of their descendants,* have been visited.

BTW in general the questions and explanations are usually very good, i am very satisfied , thanks

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

Re: About Question enthuware.ocpjp.v8.2.1652 :

Post by admin »

Hi,
Are you sure enthuware.ocpjp.v8.2.1652 is correct question id because I couldn't find any question by this id?

Paul.

brunesto
Posts: 3
Joined: Thu Aug 25, 2016 4:36 am
Contact:

Re: About Question enthuware.ocpjp.v8.2.1652 :

Post by brunesto »

Hi,
Yes the questionbank is com.enthuware.ets.ocp-jp.upgrade.1z0-813, question id enthuware.ocpjp.v8.2.1652
If it helps, here is the text of the question: "You need to recursively traverse through a given directory structure. After visiting each directory, you want print the number of files visited in that directory. Which three methods of FileVisitor will be helpful in implementing this requirement?"

Bruno

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

Re: About Question enthuware.ocpjp.v8.2.1652 :

Post by admin »

OK, I got it.
You are right. The example has issues. I have removed it.

thank you for your feedback!
Paul.

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests