File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Checked and Unchecked exceptions 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 » Beginning Java
Bookmark "Checked and Unchecked exceptions" Watch "Checked and Unchecked exceptions" New topic
Author

Checked and Unchecked exceptions

subash chandar
Greenhorn

Joined: Feb 07, 2005
Posts: 8
What is the difference between checked and unchecked exception.

How to identify whether an exception is checked or unchecked.
Is RunTimeException checked or unchecked
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Checked exceptions are have to be handled at compile time, unchecked exceptions need to be handled at runtime. Checked exceptions subclass java.lang.Exception, unchecked exceptions subclass java.lang.RuntimeException. Here this can be a little confusing, since RuntimeException also extends Exception. The thinking is that unchecked exceptions are supposed to be more trivial (though this is not necessarily how it works in practice).


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Checked and Unchecked exceptions
 
Similar Threads
overriding
Dan's mock question
exceptions
Exception Doubt
NumberFormatException