What is the significance of `final` keyword used with `Throwable`?

Responsive Ad Header

Question

Grade: Education Subject: Support
What is the significance of `final` keyword used with `Throwable`?
Asked by:
66 Viewed 66 Answers

Answer (66)

Best Answer
(228)
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.