Unchecked Exception List
ArrayIndexOutOfBoundsException
ClassCastException
IllegalArgumentException
IllegalStateException
NullPointerException
NumberFormatException
AssertionError
ExceptionInInitializerError
StackOverflowError
NoClassDefFoundError

Checked Exception List
Exception
IOException
FileNotFoundException
ParseException
ClassNotFoundException
CloneNotSupportedException
InstantiationException
InterruptedException
NoSuchMethodException
NoSuchFieldException

Answer from Praveen Kishor on Stack Overflow
๐ŸŒ
CodeJava
codejava.net โ€บ java-core โ€บ exception โ€บ java-checked-and-unchecked-exceptions
Java Checked and Unchecked Exceptions
List<String> list = new ArrayList<>(); String item = list.get(3);The get() method of the ArrayList class can throw IndexOutOfBoundsException but the code doesnโ€™t have to catch because it is an unchecked exception.See common unchecked exceptions in the section 4 below. Common checked exceptions defined in the java.lang package: ReflectiveOperationException ยท
๐ŸŒ
Rollbar
rollbar.com โ€บ home โ€บ java: list of checked & unchecked exceptions
Java: List of Checked & Unchecked Exceptions | Rollbar
May 7, 2024 - List of checked & unchecked Java exceptions with links to their corresponding guide. 1.InvocationTargetException 2.NoSuchMethodException....
๐ŸŒ
Medium
medium.com โ€บ @ahmed.abdelfaheem โ€บ checked-and-unchecked-exceptions-in-java-6cb1c9815d32
Checked and Unchecked Exceptions in Java | by Ahmed Safwat | Medium
August 12, 2023 - In Java, exceptions are organized in a hierarchical structure that revolves around the `Throwable` class. This structure is designed to provide a systematic way of categorizing and handling different types of exceptions. The main components of the exception hierarchy are ... Checked exceptions, also known as compile-time exceptions, are exceptions that must be either caught or declared in the method signature using the throws keyword.
๐ŸŒ
Programming.Guide
programming.guide โ€บ java โ€บ list-of-java-exceptions.html
List of Java Exceptions | Programming.Guide
This page provides a complete list of all public exceptions and errors available in the Java API, grouped by package.
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ java โ€บ java-checked-vs-unchecked-exceptions
Java Checked vs Unchecked Exceptions - GeeksforGeeks
October 2, 2025 - Unchecked exceptions include all subclasses of the RuntimeException class, as well as the Error class and its subclasses. The separation into checked and unchecked exceptions sounded like a good idea at the time. Over the years, it has introduced more boilerplate and less aesthetically pleasing code patterns than it solved real problems. The typical pattern within the Java ecosystem is to hide the checked exception within an unchecked one.
๐ŸŒ
Baeldung
baeldung.com โ€บ home โ€บ java โ€บ checked and unchecked exceptions in java
Checked and Unchecked Exceptions in Java | Baeldung
January 8, 2024 - Some common checked exceptions in Java are IOException, SQLException and ParseException. The Exception class is the superclass of checked exceptions, so we can create a custom checked exception by extending Exception:
๐ŸŒ
Javatpoint
javatpoint.com โ€บ list-of-checked-exceptions-in-java
List of Checked Exceptions in Java - Javatpoint
List of Checked Exceptions in Java with java tutorial, features, history, variables, programs, operators, oops concept, array, string, map, math, methods, examples etc.
Find elsewhere
๐ŸŒ
Scientech Easy
scientecheasy.com โ€บ home โ€บ blog โ€บ checked and unchecked exceptions in java
Checked and Unchecked Exceptions in Java - Scientech Easy
April 30, 2025 - All the exceptions except RuntimeException, Error, and their subclasses are checked exceptions. ... Compile-time errors are not exceptions. They come under errors. In Java, only runtime errors come under exceptions. A list of some important checked exceptions is given below:
๐ŸŒ
Oracle
docs.oracle.com โ€บ javase โ€บ specs โ€บ jls โ€บ se7 โ€บ html โ€บ jls-11.html
11.2. Compile-Time Checking of Exceptions
September 16, 2025 - For example, certain code might implement a circular data structure that, by construction, can never involve null references; the programmer can then be certain that a NullPointerException cannot occur, but it would be difficult for a Java compiler to prove it. The theorem-proving technology that is needed to establish such global properties of data structures is beyond the scope of this specification. We say that a statement or expression can throw a checked exception class E if, according to the rules in ยง11.2.1 and ยง11.2.2, the execution of the statement or expression can result in an exception of class E being thrown.
๐ŸŒ
Scribd
scribd.com โ€บ doc โ€บ 76353958 โ€บ List-of-Checked-Exceptions
List of Checked Exceptions | PDF
Checked exceptions include ClassNotFoundException, InstantiationException, IllegalAccessException, and NoSuchMethodException which occur during class loading or reflection. Unchecked exceptions include ArithmeticException, ClassCastException, ...
๐ŸŒ
Reddit
reddit.com โ€บ r/java โ€บ if everyone hates checked exceptions, where's the alternative?
r/java on Reddit: If everyone hates checked exceptions, where's the alternative?
April 25, 2024 -

Many a blog post has been written about how Checked Exception are bad/the devil incarnate.

For all the bloviating about how bad it is, most of these articles and their comment sections lack any concrete alternatives.

For Java versions before 21, there simply doesn't seem to be a reasonable (never mind close to standardized) alternative to express that a method returns Thing or AException or BException.

For Java 21+, with sealed classes and exhaustive switches, you kind of can manually recreate a vague resemblance of e.g. Rusts Result Type. That will still lack some necessities, like enforcing checking the Error for Void methods (as in Result<Void, Err>).

So my question is:

  • If you agree that checked exceptions are bad, what alternative are you actively using right now?

  • How is your favorite library handling this? Because most still seem to use exceptions

Personally, I'm getting reaaaallly annoyed by the way people talk about exceptions online. For one, they'll point out a problem, but then fail to demonstrate a solution that wouldn't have it. For another, there's very little will, it seems, to suggest and work towards a serious alternative. How can we, as a community, warn against using a builtin feature for an important part of programming without providing alternatives? Aren't we simply screwing over newbies with these takes?

Top answer
1 of 24
22
Checked exceptions are the right tool for the job they're designed for, they simply get misused. An unexpected error but there are ways to recover -> checked exception. Example : Server unavailable. Recovery possibility: retry the operation at a later time. If there is not a way to recover it should not be a checked exception. It should be an unchecked exception. Example -> NullPointer. Something is not right somewhere, and retrying isn't going to fix it. If it is not an unexpected error (example, user enters their born on date in the future) then it should not be an exception. This should be a validation that returns some validation result, maybe just true or false, maybe a validationResult class of some sort.
2 of 24
14
What you're observing is that for any endeavor, the haters often dominate the discourse, even when they don't have a majority position or a credible alternative. If they didn't hate on exceptions, they'd be whining about something else. Error handling is hard; there are many different approaches (C-style single return codes, Go-style multiple return codes, unchecked exceptions, checked exceptions, try monads, and more), and each has their pros and cons (and their supporters and haters), striking different balances of reliability and intrusiveness. Thinking there is One True Best Way here is fantasy. When people react to a particular error model, they are often reacting not to the approach itself, but examples they've encountered where it is used poorly. (Certainly Java has no shortage of examples of checked exceptions being misused.) The reality is that checked exceptions are OK, and they're what we've got, and, even if there was something that was slightly better, the disruption of trying to migrate billions of lines of code would make that impractical -- it would have to be massively better, and there's no such candidate on the horizon. Most developers intuitively realize this, and are not interested in dying on this hill, so you don't hear them in the vocal discourse, because they're too busy getting their work done. So if you want to know what to tell the newbies, tell them: don't take every rant seriously, some people just like to rant.
๐ŸŒ
TheServerSide
theserverside.com โ€บ answer โ€บ What-are-checked-vs-unchecked-exceptions-in-Java
What are checked vs. unchecked exceptions in Java? | TheServerSide
A checked exception in Java represents a predictable, erroneous situation that can occur even if a software library is used as intended. For example, if a developer tries to access a file, the Java IO library forces them to deal with the checked FileNotFoundException. The developers of the Java ...
๐ŸŒ
Coderanch
coderanch.com โ€บ t โ€บ 656435 โ€บ Checked-Unchecked-Exceptions-List-Java
Checked / Unchecked Exceptions List - Java (Blatant Advertising forum at Coderanch)
NoClassDefFoundError extends LinkageError Thrown if the Java Virtual Machine or a ClassLoader instance tries to load in the definition of a class (as part of a normal method call or as part of creating a new instance using the new expression) and no definition of the class could be found. The searched-for class definition existed when the currently executing class was compiled, but the definition can no longer be found. Checked Exceptions IOException extends Exception Signals that an I/O exception of some sort has occurred.
๐ŸŒ
How to do in Java
howtodoinjava.com โ€บ home โ€บ exception handling โ€บ java checked vs unchecked exceptions
Java - Checked vs Unchecked Exceptions (with Examples)
December 20, 2022 - Note that all checked exceptions are subclasses of Exception class. For example, ... The FileNotFoundException is a checked exception in Java.
๐ŸŒ
Wikibooks
en.wikibooks.org โ€บ wiki โ€บ Java_Programming โ€บ Checked_Exceptions
Checked Exceptions - Wikibooks, open books for an open world
This code won't compile because it can throw a checked exception. The compilation error can be resolved in either of two ways: By catching the exception and handling it, or by declaring that the exception can be thrown using the throws keyword. In the Java class hierarchy, an exception is a checked exception if it inherits from java.lang.Throwable, but not from java.lang.RuntimeException or java.lang.Error.
๐ŸŒ
Tpoint Tech
tpointtech.com โ€บ list-of-checked-exceptions-in-java
List of Checked Exceptions in Java - Tpoint Tech
Exception handling is an essential aspect of programming, enabling developers to gracefully manage and recover from unforeseen errors. In Java, exceptions ar...
๐ŸŒ
Tutorialspoint
tutorialspoint.com โ€บ java โ€บ java_builtin_exceptions.htm
Java - Built-in Exceptions
These exceptions are checked at compile-time. Unchecked Exceptions: The unchecked exceptions are not handled by the programmer. These exceptions are thrown on run-time. Some of the unchecked exceptions are NullPointerException, ArrayIndexOutOfBoundsException, ArithmeticException, etc. Java defines several other types of exceptions that relate to its various class libraries. Following is the list of Java Unchecked and Checked RuntimeException.
๐ŸŒ
Javadeploy
javadeploy.com โ€บ java-oop โ€บ module2 โ€บ common-java-exceptions.jsp
Java Checked | Unchecked Exceptions (Comprehensive List)
March 19, 2025 - Answer: If a client can reasonably be expected to recover from an exception, make it a checked exception. If a client cannot do anything to recover from the exception, make it an unchecked exception. These categories are related to each other, and subclasses of the class java.lang.Exception are categorized as checked exceptions if they are not subclasses of the class java.lang.RuntimeException.
๐ŸŒ
Rollbar
rollbar.com โ€บ home โ€บ how to handle checked & unchecked exceptions in java
How to Handle Checked & Unchecked Exceptions in Java | Rollbar
July 5, 2024 - Another common example of a checked exception in Java is the ParseException, which happens when an input is attempted to be parsed that does not match the expected format.