If we want to make a checked exception, we can extend the Exception
class, and for unchecked exceptions we can extend the RuntimeException
class.
But the Exception
class is a super for RuntimeException
, so why can't I make a runtime exception class using the Exception
class?