can a static method be overridden

Answer Posted / sushant

@ guys above.... if you don't know the exact vcorrect
answers don't put your guesses here so as to confuse people
further.

static method can NEVER be overridden.

Static method in a way are hidden and are called on the
Class itself not on the instance.You can do it but it
implicitly calls the static methods on the class.

Overriding doesn't just mean having the same method name in
the subclass as it is in the superclass. You can still have
the same method name in the subclass but it is not
overriding the superclass method and it is not polymorphism
as well. For more info please google on this.

static method can NEVER be overridden.

-Sushant

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Name the eight primitive java types.

586


Why do I get a duplicate name error when loading a jar file?

538


what are the advantages of JTA over JTS?

1661


the same information whether it will connect to the database or it will be used previous information?

561


What is the difference between static and non-static with examples?

1350






Can I use multiple html form elements with the same name?

570


What is the difference between the ‘font’ and ‘fontmetrics’ class?

626


how do you Handle Front End Application data against DB with example?

1469


What is the purpose of the notifyall() method?

597


In our urls and in the text of the buttons we have comma. Its causing an error. Is there a way to change the delimiting character for the menu arguments?

575


What is colon_pkg_prefixes and what is its use?

1990


What is permgen or permanent generation?

576


Why a component architecture for the java platform?

565


Explain about RMI Architecture?

601


How database connectivity in XML is achieved?

1760