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 / narasimha rao bodagala

Hi rama devi,u are written the answer is ok but not clear
i given one example of this

what i am saying is the static methods are not overriden
cause the class loader will load the while loading the
class at runtime so the compiler will check the which
static method would i need to call co its confused thas's
why the static methods are not overriden.

EXAMPLE:

class A {
static void something () {}
}

class B extends A {
static void something () {}
}

....
A anA = new B ();
anA.something ();

think and compile what's the comipler say's.

Is This Answer Correct ?    18 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?

1082


What is the purpose of the finally clause of a try-catch-finally statement?

1075


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

2711


Is infobus easy to use?

1079


What is in-memory replication?

1131


What is meant by method chaining?

1202


How task's priority is used in scheduling?

2338


What is the purpose of the wait() method?

1278


Where can I find seam examples and documentation?

1146


wahts is mean by dynavalidatorform in struts/

2117


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

2266


What are the different class loaders used by jvm?

1149


Explain RMI Architecture?

1152


Do I have to use jsps with my application?

1066


Difference between DurableSubscription and non- DurableSubscription?

2234