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
How task's priority is used in scheduling?
What are the benefits of detached objects?
Explain what is orm?
What is the difference between ear, jar and war file?
Why doesn’t the focus feature on the tag work in every circumstance?
When a thread blocks on i/o?
What’s jboss jbpm?
What modifiers may be used with an interface declaration?
How are the elements of a borderlayout organized?
How can I scroll through list of pages like the search results in google?
What is bean? Where can it be used?
What is local interface. How values will be passed?
To identify IDL language what mapping mechanism is used?
What is mdb and what is the special feature of that?
Explain phantom read?