Question ID :954959342609 Which of the following exceptions can be declared in the throws clause of a method overriding the method: public void perform_work( ) throws IOException {...} One of the options is NullPointerException. My question is can an overridden method throw an ecxeption(obviosly not a subclass of exception thrown in overriding method) which is not thrown in overriding method?? Or following is a right overriden method?? public void perform_work() throws IOException, NullPointerException{....} Tanveer
Anil, should I conclude that overriden method can throw any unchecked exception(not thrown in overriding method) or its something else you wanted to cite in your lengthy explaination. Anyhow, thx for ur reply... Tanveer
Hi Tanveer, Yes, your last statement is correct. An overridden method can throw any unchecked exception it wants to without regard to the overridden method signature. Regards, Manfred.