ArrayStoreExceptionArrayStoreException
An object of the wrong type is stored in an array.
DeadlockTwo or more threads are blocked forever, each waiting for the other to release a lock.
Thread A holds lock 1 and waits for lock 2, while thread B holds lock 2 and waits for lock 1. Neither thread can proceed, causing the application to hang. This is a runtime condition, not an exception.
Always acquire locks in a consistent order. Use tryLock() with timeouts. Minimize the scope of synchronized blocks. Use java.util.concurrent utilities instead of manual locking. Use jstack to detect deadlocks.
ArrayStoreExceptionAn object of the wrong type is stored in an array.
NullPointerExceptionA null reference is used where an object is required.
NegativeArraySizeExceptionAn array is created with a negative size.
ConcurrentModificationExceptionA collection is modified while being iterated over.
LinkageErrorA class has a dependency on another class that has an incompatible change.
ClosedChannelExceptionAn operation is attempted on a channel that has been closed.