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

Can I map more than one table in a cmp?

1033


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

1146


What is aop(assepct oriented programing)?

999


what is meant by JRMP?

2270


What is the difference between RMI registry and OS Agent?

1076


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

2155


What is the relation between the infobus and rmi?

955


Which are the different segments of memory?

1028


Describe, in general, how java's garbage collector works?

988


Is infobus easy to use?

991


Why use a datasource when you can directly specify a connection details? (in a J2EE application)

4176


Is the ternary operator written x : y ? Z or x ? Y : z ?

1051


Explain how will the struts know which action class to call when you submit a form?

919


which type of objects reference will be given to client?

2439


What are the oops concept?

1022