READ Free Dumps For Oracle- 1z0-851
Question ID 3782 | Which two statements are true? (Choose two.) |
Option A | A. It is possible for more than two threads to deadlock at once. |
Option B | B. The JVM implementation guarantees that multiple threads cannot enter into a deadlocked state. |
Option C | C. Deadlocked threads release once their sleep() method's sleep duration has expired. |
Option D | D. Deadlocking can occur only when the wait(), notify(), and notifyAll() methods are used incorrectly. |
Option E | E. It is possible for a single-threaded application to deadlock if synchronized blocks are used incorrectly. |
Option F | F. If a piece of code is capable of deadlocking, you cannot eliminate the possibility of deadlocking by inserting invocations of Thread.yield(). |
Correct Answer | A,F |
Question ID 3783 | Given: |
Option A | A. Compilation fails. |
Option B | B. An exception is thrown at runtime. |
Option C | C. The code executes and prints "running". |
Option D | D. The code executes and prints "runningrunning". |
Option E | E. The code executes and prints "runningrunningrunning". |
Correct Answer | E |