#

| Chapter 25 The java.lang Package |

## 25.25 java.lang.IllegalMonitorStateException (JDK 1.0)

###

Signals an illegal monitor state. It is thrown by the `Object` `notify()` and `wait()` methods used for thread synchronization.

    public class IllegalMonitorStateException extends RuntimeException {
        // Public Constructors
                public IllegalMonitorStateException();
                public IllegalMonitorStateException(String s);
    }

### Hierarchy:

Object->Throwable(Serializable)->Exception->RuntimeException->IllegalMonitorStateException

java.lang.IllegalArgumentException (JDK 1.0) |  | java.lang.IllegalStateException (JDK 1.1)