Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Refactoring for Software Design Smells: Managing Technical Debt
this week in the
OO, Patterns, UML and Refactoring
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
184.108.40.206 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.
SQL Query Interview Question
Have you checked out
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-2015