Only the
Error and
RuntimeException and all of it's subclasses are unchecked exceptions. The
NumberFormatException is subclassed from the RuntimeException and therfore it's an unchecked exception. Don't ask why the boys of Sun have put it in there. Also don't ask why NullPointerException is an unchecked exception
All subclasses of
Exception, other than RuntimeException, are checked Exceptions. You indeed have to catch them in a
try-catch-finally block, or if you don't want to catch them, you have to put it in the
throws clause of the corresponding method.
[ October 12, 2006: Message edited by: Bauke Scholtz ]