Prasanna Raman wrote:Hello All, Why should the subclass methods not throw a broader exception than the overridden super class method? Kindly explain with examples. Thanks, Prasanna
|BSc in Electronic Eng| |SCJP 6.0 91%| |SCWCD 5 92%|
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6 How To Ask Questions How To Answer Questions
David Newton wrote:This question, while superficially different, is basically the same question you asked about method overriding, and the answers are the same.