1.

What kind of exception is being thrown if Wait(), Pulse() or PulseAll() is called from code that is not within synchronized code?(a) System I/O Exception(b) DivideByZero Exception(c) SynchronizationLockException(d) All of the mentioned

Answer» Correct answer is (c) SynchronizationLockException

The 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.


Discussion

No Comment Found

Related InterviewSolutions