Posted On: Feb 22, 2018
Whenever an exception is generated in Java it is either type of a checked or unchecked exception. Below are the few differences between checked and unchecked exceptions in Java.
|Checked Exception||Unchecked Exception|
|Checked exceptions are checked at compile-time.||Unchecked exceptions are not checked at compile time|
|Interrupted Exception, file not found, Class Not Found are few Checked exceptions.||Empty Stack Exception, Arithmetic Exception, Null Pointer Exception, Array Index Out of Bounds Exception are few Unchecked exceptions|
Never Miss an Articles from us.