Checked Exception

Checked exceptions are also called “compile Time exceptions” Compiler checks those exceptions during the compilation to see whether they are handled or not. If they are not handled, compiler will force us to handle and until we handle it, we get compile time error and we can’t proceed further. Since compiler “checks” for these exceptions […]

Share this article on

Exception hierarchy

We know that, In java, Exception can be either checked or unchecked and same has been shown in the below exception hierarchy Parent class of all exceptions in java is “Throwable” class. Any instance of Throwable class can be caught using catch block except Error. We can’t handle errors in Java through program. Exception hierarchy […]

Share this article on
< Previous Next >