Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
14 Cards in this Set
- Front
- Back
ArrayIndexOutOfBoundsException: (Thrown by the JVM) |
- Thrown when attempting to access an array with an invalid index value. - Either negative or beyond the length of the array. |
|
ClassCastException: (Thrown by the JVM) |
- Thrown when attempting to cast a reference variable to a type that fails the IS-A test. |
|
IllegalArgumentException: (Thrown Programmatically) |
- Thrown when a method receives an argument formatted differently than the method expects. |
|
IllegalStateException: (Thrown Programmatically) |
- Thrown when the state of the environment does not match the operation being attempted, e.g., using a Scanner that's been closed. |
|
NullPointerException: (Thrown by the JVM) |
- Thrown when attempting to access an object with a reference variable whose current value is null. |
|
NumberFormatException: (Thrown Programmatically) |
- Thrown when a method that converts a String to a number receives a String that it cannot convert. |
|
AssertionError: (Thrown Programmatically) |
- Thrown when a statement's boolean test returns false. |
|
ExceptionInInitializerError: (Thrown by the JVM) |
- Thrown when attempting to initialize a static variable or an initialization block. |
|
StackOverflowError (Thrown by the JVM) |
- Typically thrown when a method recurses too deeply.
- Each invocation is added to the stack. |
|
NoClassDefFoundError (Thrown by the JVM) |
- Thrown when the JVM can't find a class it needs, because of a command-line error, a classpath issue, or a missing .class file. |
|
Throwable is implemented by Exception and Error. |
Throwable and Exception are checked exceptions (white boxes). |
|
Error and AssertionError are unchecked exceptions (shaded boxes). |
IOError extends Error and it is an unchecked exception (shaded boxes). |
|
IOException, EOFException and FileNotFoundException are checked exceptions (white boxes). |
RuntimeException extends Exception and it is an unchecked exceptions (shaded boxes). |
|
AritmeticException, ClassCastException, IllegalArgumentException and NumberFormatException extends from RuntimeException and are unchecked exceptions (shaded boxes). |
IllegalStateException, IndexOutOfBoundsException, ArrayIndexOutOfBoundsException extends from RuntimeException and are unchecked exceptions (shaded boxes). |