NoClassDefFoundErrorNoClassDefFoundError
A class was found at compile time but cannot be loaded at runtime.
StackOverflowErrorThe call stack has exceeded its maximum size, usually due to deep or infinite recursion.
A method calls itself recursively without a proper base case, or mutual recursion between methods creates an infinite loop. Each method call consumes stack space until the limit is reached.
Add or fix the base case in recursive methods. Convert recursion to iteration. Increase the stack size with -Xss JVM flag. Check for accidental infinite recursion in constructors or toString methods.
void recurse() { recurse(); }NoClassDefFoundErrorA class was found at compile time but cannot be loaded at runtime.
DirectoryNotEmptyExceptionA directory deletion fails because the directory is not empty.
IOExceptionAn I/O operation fails or is interrupted.
InvalidClassExceptionA serialized class has an incompatible version or invalid format.
IllegalArgumentExceptionA method receives an argument that is not valid for its expected range or format.
ConcurrentModificationExceptionA collection is modified while being iterated over.