Category Archives: Java Exception Handling

Java Exception Handling

Java Exception Handling – IllegalMonitorStateException

Moving along through our in-depth Java Exception Handling series, today we’ll get into the IllegalMonitorStateException. The IllegalMonitorStateException is thrown when a thread has been instructed to wait for an object’s monitor that the specified thread does not have ownership of. Throughout this article we’ll explore the IllegalMonitorStateException in greater detail,… continue reading →

Java Exception Handling

Java Exception Handling – IndexOutOfBoundsException

Moving along through the detailed Java Exception Handling series we’ve been working on, today we’ll be going over the IndexOutOfBoundsException. The IndexOutOfBoundsException is thrown when attempting to access an invalid index within a collection, such as an array, vector, string, and so forth. It can also be implemented within custom… continue reading →

Java Exception Handling

Java Exception Handling – ExceptionInInitializerError

Moving along through our in-depth Java Exception Handling series, today we’ll dive into the ExceptionInInitializerError, which is thrown when an error occurs within the static initializer of a class or object. Since an ExceptionInInitializerError isn’t ever the cause of a thrown error, catching such an exception provides an underlying causal… continue reading →

Java Exception Handling

Java Exception Handling – UnsupportedClassVersionError

Moving along through our detailed Java Exception Handling series, today we’ll be taking a closer look at the UnsupportedClassVersionError. The UnsupportedClassVersionError can be rather confusing, but the simplest explanation is that it occurs when the Java Virtual Machine (JVM) attempts to access a class file that was compiled using a… continue reading →