READ Free Dumps For Oracle- 1z0-851
Question ID 3899 | Given: public class NamedCounter { |
Option A | A. declare reset() using the synchronized keyword |
Option B | B. declare getName() using the synchronized keyword |
Option C | C. declare getCount() using the synchronized keyword |
Option D | D. declare the constructor using the synchronized keyword |
Option E | E. declare increment() using the synchronized keyword |
Correct Answer | A,C |
Question ID 3900 | Given that t1 is a reference to a live thread, which is true? |
Option A | A. The Thread.sleep() method can take t1 as an argument. |
Option B | B. The Object.notify() method can take t1 as an argument. |
Option C | C. The Thread.yield() method can take t1 as an argument. |
Option D | D. The Thread.setPriority() method can take t1 as an argument. |
Option E | E. The Object.notify() method arbitrarily chooses which thread to notify. |
Correct Answer | E |