0 votes
in JAVA by
Which of the following is true about the Files.walk() method in Java 8?

a) It returns a stream of all the files in a directory tree.

b) It returns a stream of all the directories in a directory tree.

c) It returns a stream of all the files and directories in a directory tree.

d) It returns a stream of all the files and directories in a directory.

1 Answer

0 votes
by

Answer: c) It returns a stream of all the files and directories in a directory tree.

Explanation:  The Files.walk() method returns a stream of all the files and directories in a directory tree, starting from a given path.

Related questions

0 votes
asked Apr 30 in JAVA by john ganales
0 votes
asked May 5 in JAVA by sharadyadav1986
...