What is the difference between Exception and Error in java ?
Error classes are both subclasses of the
Throwable class. The
Exception class is used for exceptional conditions that a user’s program should catch. The
Error class defines exceptions that are not excepted to be caught by the user program.