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 a sessionfactory? Is it a thread-safe object?
What is a modular application?
Why are some of the class and element names counter-intuitive?
What is the difference between a menuitem and a checkboxmenuitem?
What is a policy?
What does module-relative mean?
What is table mutation and how do you avoid it?
what is an isolation level?
Is the session factory thread safe?
Write a singleton program?
Explain how will the struts know which action class to call when you submit a form?
What you mean by COM and DCOM?
Describe responsibilities of Activator?
What is synchronization and why is it important?
If we opened Windows Internet Explorer 4 times, does it starts 4 processes or 4 threads?