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