This exception is thrown when we call wait(), notify() or notifyAll() methods from any object when we are not having lock on that object.
This exception is a sub-class of RuntimeException. So we donot need to handle this.
Also this is the reason why the signatures of wait(), notify() or notifyAll() do not have this exception declared .
This exception is a sub-class of RuntimeException. So we donot need to handle this.
Also this is the reason why the signatures of wait(), notify() or notifyAll() do not have this exception declared .