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

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??

1547


what are RemoteObjects?

2749


Explain phantom read?

2235


How a component can be placed on Windows?

2857


Why are component architectures useful?

1070


difference between  ejb,struts,hibernate,spring and jsp

2876


How to determine SGA site?

2544


which type of objects reference will be given to client?

2486


What method is invoked to cause an object to begin executing as a separate thread?

1041


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

1215


Define prototype?

1071


Explain about local interfaces.

1066


What is the difference between the font and fontmetrics classes?

1161


Why won’t the jvm terminate when I close all the application windows?

1248


When a thread blocks on i/o?

1104