NullPointerExceptionNullPointerException
A null reference is used where an object is required.
IllegalMonitorStateExceptionA thread attempts a monitor operation (wait, notify) without owning the object's monitor.
The methods wait(), notify(), and notifyAll() can only be called from within a synchronized block that locks on the same object. Calling them outside synchronization causes this exception.
Wrap the call in a synchronized block on the correct object. Ensure you are synchronizing on the same object as the one you call wait/notify on.
NullPointerExceptionA null reference is used where an object is required.
IndexOutOfBoundsExceptionA collection is accessed with an index that is outside its valid range.
IOExceptionAn I/O operation fails or is interrupted.
InvalidClassExceptionA serialized class has an incompatible version or invalid format.
UnknownHostExceptionThe hostname cannot be resolved to an IP address.
IllegalArgumentExceptionA method receives an argument that is not valid for its expected range or format.