Recent posts

Java - Assertions

3 minute read

Assertions are used to stop execution when “impossible” situations are detected. Assertions were introduced mainly to help the programmer to debug the applic...

Java - Exception Hierarchy

1 minute read

All exception classes are subtypes of the java.lang.Exception class. The exception class is a subclass of the Throwable class. Other than the exception class...

Java - Documentation

2 minute read

The JDK contains a very useful tool, called javadoc, that generates HTML documentation from your source files. If you add comments that start with the specia...

Java - Exception mechanism

7 minute read

An exception is a problem that arises during the execution of a program. An exception can occur for many different reasons, including the following:

Java - Exception Types

4 minute read

There are many predefined Exceptions available in java which are mentioned below, these are some of the common exceptions seen.