Java的Error和Exception
Error和Exception的相同点
都直接继承自Throwable类。
Error和Exception的不同点
引用JDK原文描述如下:
Error
and its subclasses are regarded as unchecked exceptions for the purposes of compile-time checking of exceptions.
Exception
and any subclasses that are not also subclasses of RuntimeException
are checked exceptions