Friday, March 9, 2012
Exception Rules in Java
It's just opposite in the case of constructors and methods. A overriding method cannot throw broader checked exceptions than the overridden method in the super class. But in case of constructors, subclass constructor can throw broader checked exception but not narrower checked exception of the super class constructor. This behavior is opposite as constructors are not overridden...
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment