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