Category Archives: Java

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 →