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

Which class is the immediate superclass of the menucomponent class?

1205


When a thread blocks on i/o, what state does it enter?

1097


Explain RMI Architecture?

1098


What modifiers may be used with an inner class that is a member of an outer class?

1064


What is the difference between RMI registry and OS Agent?

1149


what are the activation groupworks?

2202


What are the call back methods in entity bean?

1072


How to pass parameters in RMI?

2266


For which statements does it make sense to use a label?

1084


Which textcomponent method is used to set a textcomponent to the read-only state?

1142


Which are the different segments of memory?

1083


Where can I ask questions and make suggestions about seam?

1059


Explain phantom read?

2235


Explain the advantages and disadvantages of detached objects.

1030


Explain the steps in details to load the server object dynamically?

5108