A Developer Gateway To IT World...

Techie Uncle Software Testing Core Java Java Spring C Programming Operating System HTML 5 Java 8 ES6 Project

Checked vs unchecked exception

The exceptions which are checked by a compiler at run time for smooth execution of the program are called Checked Exception.

Example in real-life:

HallTicketMissingException, PenNotWorkingException.

Example in application:

fileNotFoundException


In our program, if there is a chance of rising checked exception, then It needs to handle this exception by using try-catch otherwise we will definitely get a compile-time exception.

LEARN TUTORIALS

.

.