📅  最后修改于: 2022-03-11 14:59:38.550000             🧑  作者: Mango
1) Look at the hierarchy, if that exception extends RuntimeException then
it is an UNCHECKED exception
if that exception extends Exception, Throwable or
any other Checked Exception, then it is CHECKED exception.
2) Throw it, if it compiles, it is an UNCHECKED exception,
if not it is a CHECKED exception.
throw new SomeException();