Oracle
1Z0-851 · Question #130
Which two statements are true? (Choose two.)
The correct answer is A. It is possible for more than two threads to deadlock at once. F. If a piece of code is capable of deadlocking, you cannot eliminate the possibility of deadlocking by. See the full explanation below for the reasoning.
Question
Which two statements are true? (Choose two.)
Options
- AIt is possible for more than two threads to deadlock at once.
- BThe JVM implementation guarantees that multiple threads cannot enter into a deadlocked state.
- CDeadlocked threads release once their sleep() method's sleep duration has expired.
- DDeadlocking can occur only when the wait(), notify(), and notifyAll() methods are used incorrectly.
- EIt is possible for a single-threaded application to deadlock if synchronized blocks are used incorrectly.
- FIf a piece of code is capable of deadlocking, you cannot eliminate the possibility of deadlocking by
How the community answered
(17 responses)- A82% (14)
- C12% (2)
- D6% (1)
Community Discussion
No community discussion yet for this question.