aspose file tools*
The moose likes Beginning Java and the fly likes Checked,Unchecked Expception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Checked,Unchecked Expception" Watch "Checked,Unchecked Expception" New topic
Author

Checked,Unchecked Expception

Lucky J Verma
Ranch Hand

Joined: Apr 11, 2007
Posts: 278
I read it in a book ,that we need not to worry about Unchecked exceptions ,as JVM can handle it ,if we dont.
But Checked ,we must do .
But in most of the books ,tutorials ,net-lessons , i see ,all examples they take is of -Unchecked category .Even Creating User Defined excpetions from Unchecked. eg ArithmeticException .

Whats the trick .Is it because of easy & standard exceptions.Can we use all the excpetions in same way & extend all the excpetions.

thnx
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
When to use checked and unchecked has many answers. Sun had one in mind when they made checked exceptions, and one option is to follow their lead. Some folks think Sun blew it, and have other ideas. Thinking In Java has a good chapter on the subject that presents both points of view. Take the time to read chapter 9 (free, online) and let us know what you think.


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Checked,Unchecked Expception