Question:

What is the difference between Exception and Error in java ?

Answer:

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.


Keywords:

© 2017 QuizBucket.org