aspose file tools*
The moose likes Beginning Java and the fly likes exceptions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "exceptions" Watch "exceptions" New topic
Author

exceptions

anita dhar
Ranch Hand

Joined: Jul 14, 2007
Posts: 69
what is checked and unchecked exception example for checked and unchecked
dave zebatinsky
Greenhorn

Joined: Jul 07, 2007
Posts: 6
Hi Aneea,

Checked exceptions that have a direct superclass of Exception are those that need to be listed in a method's throws clause, whereas unchecked exceptions that have a superclass of RuntimeException do not need to be listed as they can be thrown from almost any method.

a checked exception can be IOException for example, and an unchecked exception can be illegalStateException for example.

Cheers,

Dave
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Not an advanced question. Moving...


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: exceptions