Oracle
1Z0-805 · Question #33
Which statement is true about the take method defined in the WatchService interface?
Sign in or unlock 1Z0-805 to reveal the answer and full explanation for question #33. The question stem and answer options stay visible for context.
Java I/O Fundamentals
Question
Which statement is true about the take method defined in the WatchService interface?
Options
- ARetrieves and removes the next watch key, or returns null of none are present.
- BRetrieves and removes the next watch key. If a queued key is not immediately available, the program
- CRetrieves and removes the next watch key: waits if no key is yet present.
- DRetrieves and removes all pending events for the watch key, returning a list of the events that were retrieved.
Unlock 1Z0-805 to see the answer
You've previewed enough free 1Z0-805 questions. Unlock 1Z0-805 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.
Topics
#WatchService#take method#watch key#blocking