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 is the purpose of the notifyall() method?
What value does readline() return when it has reached the end of a file?
How are the elements of a borderlayout organized?
What do you need to set-up a cluster with jboss?
What are the sequence of steps to write pub or sub model kind of application?
What is the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?
What state does a thread enter when it terminates its processing?
How would you detect a keypress in a jcombobox?
Explain about local interfaces.
Where can I ask questions and make suggestions about seam?
To identify IDL language what mapping mechanism is used?
How a component can be placed on Windows?
What is message driven beam?
What event results from the clicking of a button?
What’s jboss cache in short?