A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCA Java SE 8 Programmer I Study Guide
this week in the
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
188.8.131.52 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
I agree. Here's the link:
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