NumberFormatException is a subclass of IllegalArgumentException.
ArrayIndexOutOfBoundsException is a subclass of IndexOutOfBoundsException.
B and C are incorrect.
B is incorrect because IllegalArgumentException is not a subclass of NumberFormatException, because IllegalArgumentException is the a superclass of NumberFormatException.
C is incorrect because IndexOutOfBoundsException is not a subclass of ArrayIndexOutOfBoundsException, because IndexOutOfBoundsException is a superclass of ArrayIndexOutOfBoundsException.
|