This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes Checked to Unchecked Exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Checked to Unchecked Exception" Watch "Checked to Unchecked Exception" New topic
Author

Checked to Unchecked Exception

Xon Bhuyan
Greenhorn

Joined: Sep 24, 2003
Posts: 11
I read somewhere like :
"If a checked exception doesn�t make sense to you do not hesitate to convert it into unchecked exception ....."

How do you convert a checked exception, say IOException into unchecked Exception ?


Xon Bhuyan
Srinivasa Raghavan
Ranch Hand

Joined: Sep 28, 2004
Posts: 1228
I guess that line was ment for custom exception classes.
To create a unchecked exception a class should inherit RuntimeException.


Thanks & regards, Srini
MCP, SCJP-1.4, NCFM (Financial Markets), Oracle 9i - SQL ( 1Z0-007 ), ITIL Certified
Stefan Willi
Ranch Hand

Joined: Mar 11, 2005
Posts: 47


Stefan
Xon Bhuyan
Greenhorn

Joined: Sep 24, 2003
Posts: 11
Thanks Stefan
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Checked to Unchecked Exception
 
Similar Threads
Checked and Unchecked Exceptions
Dan's mock question
exceptions
Exception Doubt
NumberFormatException