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

1 thought on “What kind of exception is being thrown if Wait(), Pulse() or PulseAll() is called from code that is not within synchronized code?”

  1. c
    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.

Leave a Comment