4. Which are most typically thrown by an API developer or an application developer
as opposed to being thrown by the JVM? (Choose all that apply.)
A). ClassCastException
B).
IllegalStateException C). NumberFormatException
D). IllegalArgumentException
E). ExceptionInInitializerError
i think its A , C ,D
but the answer is B,C,D
why A is wrong and the developer can
test the instance throw instanceof operator and if its fails thrown ClassCastException ?