Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Beginning Java
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
Paul Clapham
Ron McLeod
Sheriffs:
Jeanne Boyarsky
Liutauras Vilda
Saloon Keepers:
Tim Holloway
Carey Brown
Roland Mueller
Piet Souris
Bartenders:
Forum:
Beginning Java
creating our own unchecked Exceptions
Raj Kumar Bindal
Ranch Hand
Posts: 418
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
When we create user defined exceptions,those are checked exceptions.Is there any way through which we can create user defined unchecked exceptions.
Rob Spoor
Sheriff
Posts: 22862
132
I like...
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Extend RuntimeException or a subclass of RuntimeException, instead of Exception or a subclass of Exception.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions
How To Answer Questions
Raj Kumar Bindal
Ranch Hand
Posts: 418
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Thanks Rob.but i don't see any usage of making user defined unchecked exceptions.Can you tell me some scenario where user defined unchecked exceptions are helpful.
Consider Paul's
rocket mass heater
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Catching exception not thrown in try clause
Question on Exceptions
Checked,Unchecked Expception
User defined exceptions
should user defined exception be a checked or unchecked exception?
More...