Can anybody please explain what is JVM thrown exception and Programatically thrown exception. this is a question from java.Inquisition mock exam.
Fill in the table to indicate which Exception and Error classes are typically thrown programatically and which by the JVM.
This is the answer.
ArrayIndexOutOfBoundsException by JVM
ClassCastException by JVM
IllegalArgumentException Programatically
IllegalStateException Programatically
NullPointerException by JVM
NumberFormatException Programatically
AssertionError Programatically
ExceptionInInitializerError by JVM
StackOverflowError by JVM
NoClassDefFoundError by JVM
both NumberFormatException and StackOverfowError are unchecked exceptions
then why one is thrown programatically and another by JVM.
It is confusing.Can any body explain, or refer book .
Thanks
lakshmi