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

whats is mean by connectionpooling

1998


In inglish: How to convert jar to exe files? Em português: Como converter arquivos .jar para .exe?

2653


How a component can be placed on Windows?

2841


What are the different approaches to represent an inheritance hierarchy?

1063


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

1080


what are the advantages of JTA over JTS?

2187


What is the relationship between an event-listener interface and an event-adapter class?

1111


Which containers use a border layout as their default layout?

1125


What is a class loader?

1853


Should synchronization primitives be used on bean methods?

1049


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

1053


What is meant by method chaining?

1129


Do I need to import javlang package any time? Why ?

1073


Have you used threads in Servelet?

2502


What do you know about seam?

1032