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


Please Help Members By Posting Answers For Below Questions

What is a sessionfactory? Is it a thread-safe object?

808


What is a modular application?

681


Why are some of the class and element names counter-intuitive?

662


What is the difference between a menuitem and a checkboxmenuitem?

664


What is a policy?

1882






What does module-relative mean?

679


What is table mutation and how do you avoid it?

2005


what is an isolation level?

2307


Is the session factory thread safe?

782


Write a singleton program?

675


Explain how will the struts know which action class to call when you submit a form?

598


What you mean by COM and DCOM?

695


Describe responsibilities of Activator?

1761


What is synchronization and why is it important?

617


If we opened Windows Internet Explorer 4 times, does it starts 4 processes or 4 threads?

1836