READ Free Dumps For Oracle- 1z0-804
Question ID 3529 | |
Option A | A. A runtime exception is thrown on line 9. |
Option B | B. No output is produced. |
Option C | C. Greeting is printed once. |
Option D | D. Greeting is printed twice. |
Option E | E. No new threads of execution are started within the main method |
Correct Answer | C |
Question ID 3530 | Which two demonstrate the valid usage of the keyword synchronized? |
Option A | A. interface ThreadSafe { synchronized void doIt(); } |
Option B | B. abstract class ThreadSafe { synchronized abstract void doIt(); } |
Option C | C. class ThreadSafe { |
Option D | D. enum ThreadSafe { |
Correct Answer | C |