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 / karthik narayanan

Basically there are two concepts, one is overriding and the
other is hiding. When a subclass implements the same static
method as its parent class, then subclass will basically
hide the parents static implementation. So when you call
subclasses static method, only subclass method will get
executed. To execute the parents static method you have to
explicitly call it. But with instance method, you can hide
as well override the parent implementation, override in the
sense you can call the parent implementation by
super.dosamemethod()...

Hopefully this clears the debate..

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between object state and behavior?

1117


In inglish: How to convert jar to exe files? Em português: Como converter arquivos .jar para .exe?

2715


What is permgen or permanent generation?

1082


What’s jboss cache in short?

1192


What is a policy?

2353


Can I use multiple html form elements with the same name?

1113


What modifiers may be used with an interface declaration?

1194


What is the argument type of a programs main() method?

1174


Describe responsibilities of Activator?

2363


Why a component architecture for the java platform?

1317


What are the purpose of introspection?

1266


what is an isolation level?

2803


What is abstract schema?

1082


Define aop(assepct oriented programing)?

1251


What is table mutation and how do you avoid it?

2531