In the
SCJP 1.5 Beta exam objectives, the 2.6 objective is:
2.6 Recognize situations that will result in any of the following being thrown: ArrayIndexOutOfBoundsException, ClassCastException, IllegalArgumentException,
IllegalStateException, NullPointerException, NumberFormatException, AssertionError, ExceptionInInitializerError, StackOverflowError or NoClassDefFoundError. Understand which of these are thrown by the virtual machine and recognize situations in which others should be thrown programatically.
Am I right in the following?
Thrown by JVM
ArrayIndexOutOfBoundsException
ClassCastException
NullPointerException
AssertionError
StackOverflowError
NoClassDefFoundError
ExceptionInInitializerError
Thown Programatically
NumberFormatException
IllegalArgumentException
IllegalStateException