This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Checked,Unchecked Expception" Watch "Checked,Unchecked Expception" New topic

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.

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:
subject: Checked,Unchecked Expception
It's not a secret anymore!