Question
What is the significance of `final` keyword used with `Throwable`?
Asked by: USER9866
66 Viewed
66 Answers
Answer (66)
The `Throwable` class is declared as `final` in Java. This means that you cannot create subclasses of `Throwable` directly. You can only extend its subclasses, `Exception` and `Error`, to create custom exception and error types.