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
What is the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?
What is the purpose of the finally clause of a try-catch-finally statement?
In inglish: How to convert jar to exe files? Em português: Como converter arquivos .jar para .exe?
Is infobus easy to use?
What is in-memory replication?
What is meant by method chaining?
How task's priority is used in scheduling?
What is the purpose of the wait() method?
Where can I find seam examples and documentation?
wahts is mean by dynavalidatorform in struts/
What are JTA/JTS and how they used by client?
What are the different class loaders used by jvm?
Explain RMI Architecture?
Do I have to use jsps with my application?
Difference between DurableSubscription and non- DurableSubscription?