Question: What causes an IllegalMonitorStateException? (a) Two threads call a static synchronized method at the same time. (b) A thread invokes wait() on an object that
What causes an IllegalMonitorStateException?
(a) Two threads call a static synchronized method at the same time.
(b) A thread invokes wait() on an object that is already waiting.
(c) A thread invokes notify() on an object that is not waiting.
(d) A thread calls wait() or notify() before acquiring an object’s monitor.
Step by Step Solution
3.35 Rating (161 Votes )
There are 3 Steps involved in it
d A thread ca... View full answer
Get step-by-step solutions from verified subject matter experts
