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

To what value is a variable of the string type automatically initialized?

868


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

925


What is threadfactory?

849


What is a policy?

2010


What must a class do to implement an interface?

765


Can I use javascript to submit a form?

871


What is the difference between RMI and Corba?

2478


Is a class a subclass of itself?

819


Explain ioc concept?

848


What is the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?

773


What is the relationship between an event-listener interface and an event-adapter class?

770


What are the different algorithms used for clustering?

771


Do I have to use jsps with my application?

752


hi friends, i have done my BE(CSE)at 2011 then i have joined one company before they asked me 50k so i paid but now they telling no project here so we r going to close like that so now i need any job i have good knowledge in core java and j2ee(jsp,servlet,jdbc) so if u know any job pl help me

1989


What is colon_pkg_prefixes and what is its use?

2203