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 / kiran kadarla

Static methods CANNOT be overridden as they belong to a
class and not an instance of the class.

Aswini De: First of all, you didnot override the cal method.

Karteek: In your example, the fact that
parent.mystaticMethod and child.mystaticmethod are printing
different answers is in itslef an indication that the method
is not overridden!!

-kk

Is This Answer Correct ?    9 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the purpose of introspection?

1165


What is the difference between the ‘font’ and ‘fontmetrics’ class?

1108


Difference between swing and awt?

1175


How to deploy Jar, War files in J2EE?

2620


What is Remote Server?

2145


Can I use javascript to submit a form?

1095


Which component handles cluster communication in jboss?

1057


What is the difference between long.class and long.type?

1002


What is RMI and what are the services in RMI?

1076


What is re-entrant. Is session beans reentrant. Is entity beans reentrant?

1017


Can I have an action without a form?

1048


Explain RMI Architecture?

1033


How can I avoid validating a form before data is entered?

964


What is the difference between a menuitem and a checkboxmenuitem?

1030


What is synchronization and why is it important?

1035