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
What modifiers may be used with an inner class that is a member of an outer class?
What do you know about seam?
What is a class loader?
Is it possible to stop the execution of a method before completion in a sessionbean?
What is the difference between static and non-static with examples?
Name the eight primitive java types.
Why a client should be multithreading? Explain.
What is the difference between RMI registry and OS Agent?
Which component handles cluster communication in jboss?
Explain about local interfaces.
Why are some of the class and element names counter-intuitive?
When a thread blocks on i/o, what state does it enter?
How is a java object message delivered to a non-java client?
Can I run seam outside of jboss as?
What is ripple effect?