Suppose you have to write a small Java program that catches exceptions with super classes.
You are required to use inheritance to create an exception superclass (called ExceptionA) and exception subclasses ExceptionB and ExceptionC; where ExceptionB inherits from ExceptionA and ExceptionC inherits from ExceptionB.
Your program must demonstrate that the catch block for type ExceptionA catches exceptions of types ExceptionB and ExceptionC.