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.

603


Explain about local interfaces.

593


what are memory considerations of jsp compares to other web components?

6020


What are the types of scaling?

560


What is the infobus?

615






What is Stream Tokenizer?

1732


What is the difference between system.out ,system.err and system.in?

598


When a thread blocks on i/o?

573


Difference between DurableSubscription and non- DurableSubscription?

1717


What is the purpose of the wait() method?

625


What class is used to create Server side object ?

1676


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

1741


A user of a web application sees a jsessionid argument in the URL whenever a resource is accessed. What does this mean? a. The form must have the field jsessionid b. URL rewriting is used as the session method c. Cookies are used for managing sessions

1817


What is glasgow?

589


What if the static modifier is removed from the signature of the main method?

709