Enter your Email Address:

Delivered by FeedBurner

To get posts delivered to your Email

30 December 2010

A Question on Java Exception?

In Java, there are two types of exceptions - checked and unchecked.
Java compiler ensures that "checked" exceptions are handled and flags compilation error when checked exceptions are not handled. But it does not flag errors when "unchecked" exceptions are not handled. The subclasses of "RuntimeException" and the subclasses "Error" are "unchecked".

Why does Java have this as a thumb rule?

1 comment:

Anonymous said...

Unchecked exceptions may or may not arise... no guarantee.. but we do know of a few exceptions for which there is a definete probabiliy of occurance atleast in one case... take the example of a RMI call.

Thats why the classification