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();.
About Question enthuware.ocajp.i.v7.2.1368 :
Moderators: Site Manager, fjwalraven
-
- Posts: 5
- Joined: Thu Nov 07, 2013 6:06 pm
- Contact:
About Question enthuware.ocajp.i.v7.2.1368 :
There are three typos in the explanation of this question:
Online
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocajp.i.v7.2.1368 :
You are right. This has now been fixed.
thank you for your feedback!
Paul.
thank you for your feedback!
Paul.
Who is online
Users browsing this forum: No registered users and 5 guests