The base class super.constructor is implicitly called by the extended constructor of the class:
class Base { public Base () throws Exception { throw <>; } } class Derived extends Base { public Derived () { } }
Now you need to handle the exception inside Derived() or make the constructor like,
public Derived() throws Exception { }
Whatever way you new place the Derived object, either enclose it in a try-catch , or make this method throw an Exception , as described above. [Note: this is a pseudo code]
source share