What kind of exception is being thrown if Wait(),Pulse() or PulseAll() iscalled from code that is not within synchronized code?
A. System I/O Exception
B. DivideByZero Exception
C. SynchronizationLockException
D. All of the mentioned
Answer:A
What kind of exception is being thrown if Wait(),Pulse() or PulseAll() iscalled from code that is not within synchronized code?
A. System I/O Exception B. DivideByZero Exception C. SynchronizationLockException D. All of the mentioned
Explanation: A SynchronizationLockException will be thrown if Wait(), Pulse(), or PulseAll() is called from code that is not within synchronized code, such as a lock block.