Signals an illegal monitor state. It is thrown by the Object notify( ) and wait( ) methods used for thread synchronization. Figure 10-27. java.lang.IllegalMonitorStateExceptionpublic class IllegalMonitorStateException extends RuntimeException { // Public Constructors public IllegalMonitorStateException ( ); public IllegalMonitorStateException (String s ); } |