Recent posts

Thread - wait, join & deadlocks

4 minute read

The Java language includes three important methods that effectively allow one thread to signal to another. Without this facility, various constructs used in ...

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: