Why we cannot override static method?



Why we cannot override static method?..

Answer / Sakshi Bhardwaj

Static methods are associated with a class, not an object. Since they don't access instance variables or call non-static methods, it is impossible for a subclass to provide its own implementation of a static method.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What are the various access specifiers in java?

1 Answers  


What is generics in java interview questions?

1 Answers  


What is charat ()?

1 Answers  


What is dot operator?

1 Answers  


What is the synonym of procedure?

1 Answers  


What is the destroy method?

1 Answers  


What is difference between equals and hashcode method?

1 Answers  


What is the difference between the >> and >>> operators?

1 Answers  


What is singletonlist in java?

1 Answers  


What is the main functionality of the remote reference layer?

1 Answers  


What happens to the Exception object after handling an exception?

1 Answers  


What is finally and finalize in java?

1 Answers  


Categories