Chapter 6: Exceptions and Assertions Flashcards
Exception thrown by the JVM when code attempts to divide by zero.
ArithmeticException
Exception Thrown by the JVM when code uses an illegal index to access an array.
ArrayIndexOutOfBoundsException
Exception Thrown by the JVM when an attempt is made to cast an object to a subclass of which it is not an instance.
ClassCastException
Exception Thrown by the program to indicate that a method has been passed an illegal or inappropriate argument.
IllegalArgumentException
Exception Thrown by the JVM when there is a null reference where an object is required.
NullPointerException
Exception Thrown by the program when an attempt is made to convert a string to a numeric type, but the string doesn’t have an appropriate format.
NumberFormatException
java.text.ParseException Checked or Unchecked?
Checked
java.io.IOException java.io.FileNotFound Exception java.io.NotSerializable Exception. Checked or Unchecked?
Checked
java.sql.SQLException. Checked or Unchecked?
Checked
java.lang.ArrayStoreException. Checked or Unchecked?
Unchecked
java.time.DateTimeException. Checked or Unchecked?
Unchecked
java.util.MissingResourceException. Checked or Unchecked?
Unchecked
java.lang.IllegalStateException java.lang.UnsupportedOperationException. Checked or Unchecked?
Unchecked