About Question enthuware.ocajp.i.v7.2.1368 :
Posted: Sun Nov 10, 2013 7:42 pm
There are three typos in the explanation of this question:
Note: The terminology "thrown by the JVM and "thrown by the application/programatically" is not precise but is used by popular books. If it helps, you can think of the exception categories as "thrown implicitly" and "thrown explicitly". An exception that is thrown even when there is no throws statement, is said to be thrown implicitly. For example, calling a method on null will cause a NullPointerException to be thrown automatically, even through there is no throws statement. On the other hand, a code may throw an exception explicily by using the throw statement. For example, a method code might check an argument for validity and if it finds the argument inappropriate, it may throw an exception by executing throw new IllegalArgumentException();.