It's not a secret anymore!
The moose likes Java in General and the fly likes Why Checked Exception in Java 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 » Java in General
Bookmark "Why Checked Exception in Java" Watch "Why Checked Exception in Java" New topic

Why Checked Exception in Java

anish jain
Ranch Hand

Joined: Feb 03, 2010
Posts: 129
Why did Java categorize the Exception into Checked and Unchecked Exceptions?

What is the advantage of forcing the developer to handle the exception at compile time as in the case of Checked Exception?

And also new frameworks like Spring,Hibernate etc. support Unchecked Exceptions Why is it so?

Any help will be highly appreciated...
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 45292
Start with the Java™ Tutorials, I would suggest.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Why Checked Exception in Java
It's not a secret anymore!