Meaningless Drivel is fun!*
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 Murach's Java Servlets and JSP this week in the Servlets 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