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

What are transaction attributes?

610


How to pass parameters in RMI?

1688


Is the infobus client side only?

607


Can we sent objects using Sockets?

644


Do we need to override service() method

1139






Why does the tag url-encode javascript and mailto links?

578


What are the design considerations while making a choice between using interface and abstract class?

541


What are the call back methods in entity bean?

557


Why does the option tag render selected=selected instead of just selected?

673


What is a class loader?

586


Name three component subclasses that support painting?

612


Which container method is used to cause a container to be laid out and redisplayed?

664


How can I scroll through list of pages like the search results in google?

567


what are RemoteObjects?

2256


What are the pros and cons of detached objects?

547