can a static method be overridden

Answer Posted / prathyusha

Static Method methods are class methods (doesnot belong to
particular Object) so the concept of runtime polymorphism
doesn't arise here..

Staic void dostuff() method is actually redefined in
subclass but not overridden..

Hence Static methods can NEVER be overridden

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can I use javascript to submit a form?

602


What is the infobus?

607


What are various types of class loaders used by jvm?

489


What class is the top of the awt event hierarchy?

566


what is Activation Instantinator?

1901






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

1728


What is the purpose of the finally clause of a try-catch-finally statement?

547


What are externizable interface?

571


how i secure my site with the https protocol.what are the steps?

1727


What is the difference between a menuitem and a checkboxmenuitem?

575


Why doesn’t the focus feature on the tag work in every circumstance?

555


How would you detect a keypress in a jcombobox?

665


How many times may an objects finalize() method be invoked by the garbage collector?

665


What modifiers may be used with an interface declaration?

548


What value does readline() return when it has reached the end of a file?

578