exception handling impl
Posted on 2011-05-04
I was reading folowing lines and I did not understand clearly.
The overriding method can throw narrower or fewer exceptions. Just because
an overridden method takes risks doesnot mean that the overriding subclass
exception takes the same risks. Bottom line is overriding method doesnot have to declare any exceptions that it will never throw, regardless of what the
overridden method declares.
Any ideas, resources,sample code,links, highly appreciated. thanks in advance.