Showing posts with label unchecked exception. Show all posts
Showing posts with label unchecked exception. Show all posts

Checked and Unchecked Exceptions /Chapter 3/ Exception Handling

Checked Exceptions


Checked Exceptions


The exceptions which are checked by the compiler for smooth execution of the program at runtime are called, checked exceptions.

example:-

FileNotFoundException,ServletException etc.

In our java program, if there is a possibility of rising checked exception then mandatory we should handle that checked exception (either by try catch or throws keyword) otherwise, we will get compile time error.

Flipkart End Of Season Sale






© Copyright 2017 Javabychetan.blogspot.com