Constructors can throw exceptions. If parent default constructor throw exception, subclass have to do the same or have to handle the execption
the above statement is true. the subclass whose parent constructor throws exception ,has to handle the same exception or superclass of the exception thrown by the constructor of the super class.
try the following code