March 2002
Intermediate to advanced
480 pages
18h 40m
English
IllegalMonitorStateException
This is an exception that signals one of the following conditions:
A thread has called the Object
wait()
method on a object for which it does not hold the monitor.
A thread has called the Object
notify()
or notifyAll()
method on a object for which it does not hold the monitor.
The monitor for an object obj is
acquired either by synchronizing on that object using the
synchronized (obj) expression, or by entering a
non-static method of that object’s class that is declared using the
synchronized keyword.
This class is the same as its J2SE equivalent, apart from its inability to be serialized.
public class IllegalMonitorStateException extends RuntimeException {
// Public Constructors
public IllegalMonitorStateException();
public IllegalMonitorStateException( String s);
}
Read now
Unlock full access