Name

IllegalMonitorStateException

Synopsis

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

java.lang.IllegalMonitorStateException

Figure 10-27. java.lang.IllegalMonitorStateException

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

Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.