Check all valid methods of creation of an Exception class.
Explanation
Exceptions must extend the Throwable class (which is not an interface). The Throwable class is a superclass (parent) of the Exception class, hence inheriting from any of them is a valid way of creating an exception class.

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback