1Error is the subclass of Throwable class in java. When errors are caused
2by our program we call that as Exception, but sometimes exceptions are
3caused due to some environment issues such as running out of memory.
4In such cases we can’t handle the exceptions.
5Exceptions which cannot be recovered are called as errors in java.
6Ex : Out of memory issues