📌  相关文章
📜  如何知道某个异常是否被选中或未选中 - 任何代码示例

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

代码示例1
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();