If you call a constructor or a method that throws an exception, you must either 1. put the function/constructor call in try/catch block 2. or declare the method with throws...
In your example, the compiler automatically puts super() as the first statement, so its calling the super class constructor. So you should either use try/catch in sub class constructor or you should declare the constructor with throws...
SCJP 1.4, SCWCD 1.4, SCBCD 1.5
Ayub ali khan
Joined: Oct 20, 2005
Thank you for answering my question. I understood the concept you told.