Why runtime exception is unchecked exception?

前端 未结 5 1137
庸人自扰
庸人自扰 2020-12-10 11:19

Generally if any class extends Exception , it becomes checked exception. Runtime exception also extends Exception. Then how is it unchecked e

5条回答
  •  囚心锁ツ
    2020-12-10 11:38

    Here is a useful link: http://www.javapractices.com/topic/TopicAction.do?Id=129

    It explains the difference between unchecked and checked and gives some examples.

    "It is somewhat confusing, but note as well that RuntimeException (unchecked) is itself a subclass of Exception (checked)."

提交回复
热议问题