A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Java EE 7 Tutorial Volume 1 or Volume 2
this week in the
jQuery UI in Action
Programmer Certification (SCJP/OCPJP)
Checked and Unchecked Exception
Joined: Jul 14, 2011
Oct 31, 2011 04:22:05
Could anyone confirm if the below is the exact classification for checked and unchecked exception?
1. Throwable (checked)
1.1 Error (unchecked)
1.1.1 unchecked hierarchy
1.2 Exception (checked)
1.2.1 checked hierarchy
18.104.22.168 unchecked hierarchy
Joined: Oct 23, 2011
Oct 31, 2011 06:32:45
Yes your classification is correct.
In other words
= (Error and its subclass Exception + Runtime and its subclass Exception ).
= (Throwable Exception - Unchecked Exception).
Joined: Oct 15, 2010
Nov 02, 2011 03:45:12
In simple words, Any Exception which is sub-class or inherited from
is unchecked Exception and doesn't require to be declared on throws clause. rest are checked exceptions.
java logging tips
java interview questions
Java Enum Tutorial
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: Checked and Unchecked Exception
Why this exception handling works?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014