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

What are various types of class loaders used by jvm?

495


whats is statement and procedure

1585


Name three component subclasses that support painting?

612


What are the diff types of exception?

553


How would you create a button with rounded edges?

557






what is a portable component?

1464


How database connectivity in XML is achieved?

1766


What is a class loader? What are the different class loaders used by jvm?

583


What is the difference between session and entity beans?

578


How substring() method of string class create memory leaks?

550


What is table mutation and how do you avoid it?

1915


Explain the steps in details to load the server object dynamically?

4540


Do I need to import javlang package any time? Why ?

625


Explain RMI Architecture?

606


Name the class that is used to bind the server object with RMI Registry?

1692