Page 1 of 1

Which two statements are true about the walkFileTree method of the files class?

Posted: Wed Jun 07, 2023 6:11 am
by answerhappygod
Which two statements are true about the walkFileTree method of the files class?

A. The file tree traversal is breadth-first with the given FileVisitor invoked for each file encountered.
B. If the file is a directory, and if that directory could not be opened, the postVisitFileFailed method is invoked with the I/O exception.
C. The maxDepth parameter’s value is the maximum number of directories to visit.
D. By default, symbolic links are not automatically followed by the method.