What is the difference between Exception and Error in java ?

3 years ago
OOP Java

Exception and 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.

More related questions

Questions Bank

View all Questions