Oracle
1Z0-809 · Question #230
1Z0-809 Question #230: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-809 to reveal the answer and full explanation for question #230. The question stem and answer options stay visible for context.
Question
Given that these files exist and are accessible:
/company/emp/info.txt
/company/emp/benefits/b1.txt
and given the code fragment:
// line n1
stream.forEach(s -> System.out.print(s));
Which code fragment can be inserted at line n1 to enable the code to print only /company/emp?Options
- AStream<Path> stream = Files.list(Paths.get("/company"));
- BStream<Path> stream = Files.find( Paths.get("/company"), 1, (p,b) -> p.isDirectory(), FileVisitOption.FOLLOW_LINKS);
- CStream<Path> stream = Files.walk(Paths.get("/company"));
- DStream<Path> stream = Files.list(Paths.get("/company/emp"));
Unlock 1Z0-809 to see the answer
You've previewed enough free 1Z0-809 questions. Unlock 1Z0-809 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.