This tutorial explains the exception hierarchy in Java using class diagram showing all the important exception classes provided in java.lang.package. It explains the 3 main types of exception classes in Java.|This tutorial explains the exception hierarchy in Java using class diagram showing all the important exception classes provided in java.lang.package. It explains the 3 main types of exception classes in Java.