Like most modern programming languages, Java includes the concept of exceptions to handle both errors and "exceptional events." When an exception occurs in your code, it disrupts the normal instruction logic and abnormally terminates the process.
However, with a little foresight and code, you can often handle these exceptions gracefully, allowing your code to continue running and providing insight for tracking down the root cause of the unexpected result.
Below we have compiled a list of Checked and UncheckedJava exceptions you would likely encounter, with links to their corresponding guide on how best to implement them.
 
Exceptions under the parent class java.lang.Throwable
Checked exceptions are denoted by the ✓ mark
-
Exception
CloneNotSupportedException ✓
InterruptedException ✓
-
ReflectiveOperationException
ClassNotFoundException ✓
IllegalAccessException ✓
InstantiationException ✓
NoSuchFieldException ✓
NoSuchMethodException ✓
-
RuntimeException
ArithmeticException
ArrayStoreException
ClassCastException
EnumConstantNotPresentException
-
IllegalArgumentException
IllegalCallerException
IllegalMonitorStateException
IllegalStateException
-
IndexOutOfBoundsException
LayerInstantiationException
NegativeArraySizeException
NullPointerException
SecurityException
TypeNotPresentException
UnsupportedOperationException
 
Track, Analyze and Manage Errors With Rollbar
Managing errors and exceptions in your code is challenging. It can make deploying production code an unnerving experience. Being able to track, analyse, and manage errors in real-time can help you proceed with more confidence. Rollbar automates error monitoring and triaging, making fixing Java errors easier than ever. Sign Up Today!