Monday, April 23, 2018

10 points about Exception in Java



1. There are two kinds of exception in Java, checked and unchecked exception. Any exception, which is subclass of java.lang.Exception but not inherited from java.lang.RuntimeException is known as checked Exception. On the other hand those inherited from RuntimeException are called unchecked exception.

2. Checked exceptions follow special symanatic rules in Java, they are literally checked by compiler during compile time.

3. All Exception are inherited from Throwable class.

4. Though Error are not inherited from RuntimeException they are also unchecked.

No comments:

Post a Comment

Feel free to comment, ask questions if you have any doubt.