1Z0-809 Web TestEngine demo

Exit VCEDump 1Z0-809 Java SE 8 Programmer II
Question 16 of 32
0% complete
Q16 Single choice

Given that these files exist and are accessible:

/sports/info.txt
/sports/cricket/players.txt
/sports/cricket/data/ODI.txt

and given the code fragment:

int maxDepth =2;
Stream<Path> paths = Files.find(Paths.get("/sports"),
maxDepth,
(p, a) -> p.getFileName().toString().endsWith ("txt"),
FileVisitOption.FOLLOW_LINKS);
Long fCount = paths.count();
System.out.println(fCount);

Assuming that there are NO soft-link/symbolic links to any of the files in the directory structure, what is the result?

Sign in to mark questions

Sign in to save marked questions and return to this demo.

Sign in