Oracle
1Z0-851 · Question #66
Given that t1 is a reference to a live thread, which is true?
The correct answer is E. The Object.notify() method arbitrarily chooses which thread to notify. See the full explanation below for the reasoning.
Question
Given that t1 is a reference to a live thread, which is true?
Options
- AThe Thread.sleep() method can take t1 as an argument.
- BThe Object.notify() method can take t1 as an argument.
- CThe Thread.yield() method can take t1 as an argument.
- DThe Thread.setPriority() method can take t1 as an argument.
- EThe Object.notify() method arbitrarily chooses which thread to notify.
How the community answered
(26 responses)- A4% (1)
- B4% (1)
- C8% (2)
- D12% (3)
- E73% (19)
Community Discussion
No community discussion yet for this question.