AllExam Dumps

DUMPS, FREE DUMPS, VCP5 DUMPS| VMWARE DUMPS, VCP DUMPS, VCP4 DUMPS, VCAP DUMPS, VCDX DUMPS, CISCO DUMPS, CCNA, CCNA DUMPS, CCNP DUMPS, CCIE DUMPS, ITIL, EXIN DUMPS,


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
Explanation


Question ID 3783

Given:
1.    public class Threads3 implements Runnable {
2.    public void run() {
3.    System.out.print("running");
4.    }
5.    public static void main(String[] args) {
6.    Thread t = new Thread(new Threads3());
7.    t.run();
8.    t.run();
9.    t.start();
10.    }
11.    }
What is the result?
 

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
Explanation

Send email to admin@getfreedumps for new dumps request!!!