This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Exceptions : Help Needed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Exceptions : Help Needed" Watch "Exceptions : Help Needed" New topic
Author

Exceptions : Help Needed

Sandeep Vaid
Ranch Hand

Joined: Feb 27, 2006
Posts: 390
Friends,

Please let me know if there is a rule which specifies whether an exception is unchecked or checked by just looking @ exception name? In other words how you came to know that NullPointerException is a unchecked exception and IOException is a checked exception.?
Andrea Z�rcher
Greenhorn

Joined: Oct 06, 2006
Posts: 10
NullPointerException is a subclass from RuntimeException. All subclasses from RuntimeException are unchecked exceptions. IOException is a direct subtype from java.lang.Exception. So it's a checked exception.


SCJP 5.0
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Exceptions : Help Needed
 
Similar Threads
exceptions
How to recognise a checked or unchecked exception
Exception Doubt
checked Exception
NumberFormatException