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

how do you Handle Front End Application data against DB with example?

2051


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

1034


Difference between hashmap and hashtable?

1223


What is ripple effect?

1123


Java is fully object oriented languages or not?

1070


what is the use of State Factories?

2446


What are JTA/JTS and how they used by client?

2264


What is the difference between system.out ,system.err and system.in?

1156


What do you mean by Socket Programming?

1132


Why are component architectures useful?

1117


What is the difference between the font and fontmetrics classes?

1211


what is Activation Instantinator?

2505


When is the best time to validate input?

1146


How substring() method of string class create memory leaks?

1091


Why a component architecture for the java platform?

1308