Oracle
1Z0-809 · Question #259
Given that these files exist and are accessible: /sports/info.txt /sports/cricket/players.txt /sports/cricket/data/tst.txt and given the code fragment: int maxDepth =2; Stream<Path> paths =…
The correct answer is B. 2. You've hit your session limit · resets 5:20pm (America/New_York)
Question
Given that these files exist and are accessible:
/sports/info.txt
/sports/cricket/players.txt
/sports/cricket/data/tst.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.print(fcount);
Assuming that there are NO soft-link/symbolic links to any of the files in the directory structure,
what is the result?
Options
- A1
- B2
- C3
- DAn Exception is thrown at runtime.
How the community answered
(20 responses)- A5% (1)
- B80% (16)
- C10% (2)
- D5% (1)
Explanation
You've hit your session limit · resets 5:20pm (America/New_York)
Community Discussion
No community discussion yet for this question.