Category Archives: Java

Java Exception Handling

Java Exception Handling – java.lang.ArrayIndexOutOfBoundsException

Today we’ll take another journey through the “Land of Errors” of our ongoing Java Exception Handling series, with a deep dive into the java.lang.ArrayIndexOutOfBoundsException. As the name clearly indicates, the ArrayIndexOutOfBoundsException is thrown when an index is passed to an array which doesn’t contain an element at that particular index… continue reading →

Java Exception Handling

Java Exception Handling – InvocationTargetException

Moving along through our in-depth Java Exception Handling series, today we’ll take a closer look at the java.lang.reflect.InvocationTargetException. The java.lang.reflect.InvocationTargetException is thrown when working with the reflection API while attempting to invoke a method that throws an underlying exception itself. In this article we’ll explore the InvocationTargetException in more detail… continue reading →

Java Exception Handling

Java Exception Handling – ConcurrentModificationException

Today we’ll bite off another morsel from our delicious and mildly satiating Java Exception Handling series with a close look at the java.util.ConcurrentModificationException. The java.util.ConcurrentModificationException is typically thrown when code attempts to modify a data collection while that collection is actively in use, such as being iterated. We’ll take the… continue reading →

Java Exception Handling

Java Exception Handling – NoClassDefFoundError

Today we continue our adventure through the Java Exception Handling series with a close look at the java.lang.NoClassDefFoundError. In most cases, a java.lang.NoClassDefFoundError is thrown when a class reference was available during compile time, but has since disappeared (for whatever reason) during execution. In this article we’ll explore the java.lang.NoClassDefFoundError… continue reading →