📜  Java代码示例中的错误是什么

📅  最后修改于: 2022-03-11 14:52:03.043000             🧑  作者: Mango

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