About Question enthuware.ocpjp.v17.2.1798 :

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
sypham2909
Posts: 3
Joined: Thu Oct 19, 2023 12:49 pm
Contact:

About Question enthuware.ocpjp.v17.2.1798 :

Post by sypham2909 »

For the explanation of the 3rd options:
The usage of Files.list method is correct but it returns a stream of Path objects for files contained in a directory. Unlike the Files.find method, the list method doesn't search for files. It just returns all the files in a given directory.
I think the second sentence should say that the list method doesn't search for sub-directories of the given directory denoted in the Path object passed to the method. In other words, list method does not search recursively but only the immediate entries of the specified directory.

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

Re: About Question enthuware.ocpjp.v17.2.1798 :

Post by admin »

Yes, that would be more clear. Will enhance.
thank you for your feedback!
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 221 guests