Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within OCPJP
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
paul wheaton
Liutauras Vilda
Ron McLeod
Sheriffs:
Jeanne Boyarsky
Devaka Cooray
Paul Clapham
Saloon Keepers:
Scott Selikoff
Tim Holloway
Piet Souris
Mikalai Zaikin
Frits Walraven
Bartenders:
Stephan van Hulst
Carey Brown
Forum:
Programmer Certification (OCPJP)
Checked and Unchecked Exception
nitin sethi
Ranch Hand
Posts: 59
I like...
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
1.2.2 RuntimeException (unchecked)
1.2.2.1 unchecked hierarchy
naveen yadav
Ranch Hand
Posts: 384
I like...
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Yes your classification is correct.
In other words
Unchecked Exception
= (Error and its subclass Exception + Runtime and its subclass Exception ).
Checked Exception
= (Throwable Exception - Unchecked Exception).
Javin Paul
Ranch Hand
Posts: 300
I like...
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
In simple words, Any Exception which is sub-class or inherited from RuntimeException is unchecked Exception and doesn't require to be declared on throws clause. rest are checked exceptions.
OJAJP 8 FAQ
Free Java 8 Mock Exams
Java 8 Certification Guide
OCAJP Books
OCAPJP and OCPJP guide
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
NumberFormatException
Why this exception handling works?
Exceptions
Exception Doubt
exceptions
More...