Site Owners Forums - Webmaster Forums

Site Owners Forums - Webmaster Forums (http://siteownersforums.com/index.php)
-   Java (http://siteownersforums.com/forumdisplay.php?f=12)
-   -   What is difference between Checked Exception and Unchecked Exception? (http://siteownersforums.com/showthread.php?t=348767)

Pavan Techn 05-29-2018 08:40 AM

What is difference between Checked Exception and Unchecked Exception?
 
1)Checked Exception
The classes that extend Throwable class except RuntimeException and Error are known as checked exceptions e.g.IOException,SQLException etc. Checked exceptions are checked at compile-time.

2)Unchecked Exception
The classes that extend RuntimeException are known as unchecked exceptions e.g. ArithmeticException,NullPointerException etc. Unchecked exceptions are not checked at compile-time.


All times are GMT -7. The time now is 08:56 AM.


Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.