exam questions

Exam 1z0-809 All Questions

View all questions & answers for the 1z0-809 exam

Exam 1z0-809 topic 1 question 133 discussion

Actual exam question from Oracle's 1z0-809
Question #: 133
Topic #: 1
[All 1z0-809 Questions]

Given that these files exist and are accessible:
and given the code fragment:

Which code fragment can be inserted at line n1 to enable the code to print only /company/emp?

  • A. Stream<Path> stream = Files.list (Paths.get ("/company"));
  • B. Stream<Path> stream = Files.find( Paths.get ("/company"), 1, (p,b) ""> b.isDirectory (), FileVisitOption.FOLLOW_LINKS);
  • C. Stream<Path> stream = Files.walk (Paths.get ("/company"));
  • D. Stream<Path> stream = Files.list (Paths.get ("/company/emp"));
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
jduarte
Highly Voted 3 years, 11 months ago
The answer is A
upvoted 6 times
...
vidhuharu
Most Recent 3 months, 1 week ago
Selected Answer: B
answer B. because we need only /company/emp.
upvoted 1 times
...
iSnover
11 months, 1 week ago
Selected Answer: A
The answer is A, B is incorrect.
upvoted 1 times
...
Kim514
1 year, 9 months ago
The answer is A B is incorrect
upvoted 1 times
...
NoraYu
2 years, 6 months ago
B is correct
upvoted 1 times
...
AVB22
3 years, 2 months ago
a, tested
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago