What is Exception and Error ?
Exception:-
An abnormal condition which occurred during the execution of a program,
that disrupts the normal flow of the program's execution is called
exception .It can be handle .
Exception, a subclass of Throwable
Error:-
An Error indicates that a non-recoverable condition It is serious abnormal condition. It can not be caught any way.
Error, a subclass of Throwable like OutOfMemoryError