0
Explore
0

Complete List of Checked Exceptions In Java

Updated on July 29, 2025

Here is a comprehensive list of common Checked Exceptions in Java, categorized and explained. These exceptions are checked at compile-time, meaning the Java compiler forces you to either handle them with try-catch or declare them using the throws keyword.

Checked Exceptions in Java – Complete List with Descriptions

📁 1. IOException and Its Subclasses

These exceptions occur during Input/Output operations like file reading/writing or network communication.

ExceptionDescription
IOExceptionGeneral I/O exception
FileNotFoundExceptionFile cannot be found
EOFExceptionEnd of file reached unexpectedly
InterruptedIOExceptionI/O operation interrupted
UnsupportedEncodingExceptionUnsupported character encoding
MalformedURLExceptionURL is not in the correct format
UnknownHostExceptionHost could not be determined
SocketExceptionError in socket connection
BindExceptionError in binding the port/socket
ConnectExceptionConnection to server failed

🗃️ 2. SQLException and JDBC Exceptions

These occur during database operations using JDBC.

ExceptionDescription
SQLExceptionGeneral database access error
SQLTimeoutExceptionDatabase operation timed out
SQLDataExceptionData-related error (e.g., data too large)
SQLIntegrityConstraintViolationExceptionConstraint violation (like unique key)
SQLSyntaxErrorExceptionSQL query syntax error

🏗️ 3. Class Loading and Reflection Exceptions

ExceptionDescription
ClassNotFoundExceptionRequested class not found during runtime
InstantiationExceptionCannot instantiate a class (e.g., abstract/interface)
IllegalAccessExceptionAccess to the class or method is not allowed
InvocationTargetExceptionException thrown by invoked method via reflection
NoSuchMethodExceptionMethod not found during reflection
NoSuchFieldExceptionField not found during reflection

🛠️ 4. Thread and Concurrency Exceptions

ExceptionDescription
InterruptedExceptionThread interrupted while waiting or sleeping
ExecutionExceptionException thrown during task execution in threads

📚 5. Other Checked Exceptions

ExceptionDescription
ParseExceptionError while parsing strings (e.g., date formats)
CloneNotSupportedExceptionObject doesn’t support clone() method
GeneralSecurityExceptionGeneral security-related exceptions
CertificateExceptionError in certificate processing
DataFormatExceptionData compression format error
TransformerExceptionXML transformation error
SAXExceptionXML parsing error in SAX parser

⚠️ Important Note:

All checked exceptions extend from the base class:

java.lang.Exception
   ↳ (Checked Exceptions)

They do not inherit from RuntimeException. If an exception extends RuntimeException, it is unchecked.

📌 Summary Table

CategoryCommon Exceptions
File & I/OIOException, FileNotFoundException
Database (JDBC)SQLException, SQLSyntaxErrorException
Reflection & ClassClassNotFoundException, IllegalAccessException
ThreadingInterruptedException
Parsing & OthersParseException, CloneNotSupportedException