READ Free Dumps For Oracle- 1z0-851
Question ID 22676 | Given that Triangle implements Runnable, and: 32. Thread t = new Thread(new Triangle()); |
Option A | Thread.wait(); |
Option B | Thread.join(); |
Option C | Thread.yield(); |
Option D | Thread.sleep(1); |
Option E | Thread.notify(); |
Correct Answer | C,D |
Question ID 22677 | Which two code fragments will execute the method doStuff() in a separate thread? (Choose two.) |
Option A | new Thread() { public void run() { doStuff(); } |
Option B | new Thread() { |
Option C | new Thread() { |
Option D | new Thread() { |
Option E | new Thread(new Runnable() { |
Option F | new Thread(new Runnable() { |
Correct Answer | D,F |