Will it be called overriding if I do not change the
parameters or return type, instead throw a different
exception in the method signature.

Answer Posted / prakash

An Overridden method can throw lesser exceptions or no
exception and any new Runtime exceptions

An overridden method can't throw any new checked exception
or broader exceptions than its base class method.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

cud u help me ... i am struggling with this question... to find all the subsets of a given set for ex.... a,,b,c shud give all the subsets.... i gt the program in c bt nt able to get it in java..... help needed ..

1743


when A client sent a request to the server to open facebook page and close the browser after this request .at that time the same user do login by using a different browser then that session id will exist or not for the same client??

1110


How are commas used in the intialization and iteration parts of a for statement?

590


how to make a index.jsp for running the site in internet and find an error for connection with weblogic server and java that give an error invalid object name.and how to maintain session.

1763


How would you reatach detached objects to a session when the same object has already been loaded into the session?

688






What are the pros and cons of detached objects?

550


What is jboss?

576


Why are my checkboxes not being set from on to off?

650


Difference between swing and awt?

608


What is a class loader? What are the different class loaders used by jvm?

587


Why do threads block on i/o?

687


What classes of exceptions may be caught by a catch clause?

561


How a component can be placed on Windows?

2269


Java is fully object oriented languages or not?

543


What is the RMI and Socket?

627