can a static method be overridden
Answer Posted / partha
@ Mayank
Static methods are *NEVER* ever be overridden, even if you
try to override a static method of the super class in your
subclass, it will compile because in this you are simply
redeclaring the static method of your superclass in your
subclass. Redeclaring a method is not the same as overriding
a method.
The bottomline is
** STATIC METHODS CAN NEVER BE OVERRIDDEN **
| Is This Answer Correct ? | 8 Yes | 5 No |
Post New Answer View All Answers
To identify IDL language what mapping mechanism is used?
What is a session? Can you share a session object between different theads?
What are the design considerations while making a choice between using interface and abstract class?
Why does the option tag render selected=selected instead of just selected?
what are the activation groupworks?
What is the diffrence between a local-tx-datasource and a xa-datasource?
Name three subclasses of the component class?
How to implement RMI in Java?
What is the purpose of the wait() method?
What is meant by method chaining?
wahts is mean by dynavalidatorform in struts/
What is the purpose of the notify() method?
What is a tasks priority and how is it used in scheduling?
Is the session factory thread safe?
When a thread blocks on i/o, what state does it enter?