Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

can a static method be overridden

Answer Posted / partha

@ Mayank

Static methods are *NEVER* ever be overridden, even if you
try to override a static method of the super class in your
subclass, it will compile because in this you are simply
redeclaring the static method of your superclass in your
subclass. Redeclaring a method is not the same as overriding
a method.

The bottomline is

** STATIC METHODS CAN NEVER BE OVERRIDDEN **

Is This Answer Correct ?    8 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

To identify IDL language what mapping mechanism is used?

3986


What is a session? Can you share a session object between different theads?

1040


What are the design considerations while making a choice between using interface and abstract class?

1140


Why does the option tag render selected=selected instead of just selected?

1246


what are the activation groupworks?

2254


What is the diffrence between a local-tx-datasource and a xa-datasource?

1110


Name three subclasses of the component class?

1164


How to implement RMI in Java?

2932


What is the purpose of the wait() method?

1289


What is meant by method chaining?

1207


wahts is mean by dynavalidatorform in struts/

2122


What is the purpose of the notify() method?

1140


What is a tasks priority and how is it used in scheduling?

1112


Is the session factory thread safe?

1237


When a thread blocks on i/o, what state does it enter?

1159