EOFExceptionEOFException
End of file or stream is reached unexpectedly.
StringIndexOutOfBoundsExceptionA string is accessed with an index that is outside its valid range.
The index is negative or greater than or equal to the string length. This occurs with charAt(), substring(), or similar String methods when the index does not correspond to a valid character position.
Check the string length before accessing characters. Handle empty strings as a special case. Fix off-by-one errors in index calculations.
EOFExceptionEnd of file or stream is reached unexpectedly.
NoSuchElementExceptionAn attempt to retrieve an element from an empty collection or exhausted iterator.
InvalidClassExceptionA serialized class has an incompatible version or invalid format.
FileNotFoundExceptionThe specified file path does not exist or cannot be opened.
PatternSyntaxExceptionA regular expression has invalid syntax.
SSLHandshakeExceptionThe SSL/TLS handshake failed between client and server.