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 local interface. How values will be passed?
Explain how will the struts know which action class to call when you submit a form?
Can I run seam with jdk 1.4 and earlier?
Which characters may be used as the second character of an identifier, but not as the first character of an identifier?
Name the class that is used to bind the server object with RMI Registry?
What are the different algorithms used for clustering?
Are enterprise beans allowed to use thread.sleep()?
Where can I ask questions and make suggestions about seam?
Can you control when passivation occurs?
Can you give me a simple example of using the requiredif validator rule?
Which container method is used to cause a container to be laid out and redisplayed?
What are callback interfaces?
What is a policy?
What are the different methods of identifying an object?
Can I use multiple html form elements with the same name?