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 |
What are the various access specifiers in java?
What is generics in java interview questions?
What is charat ()?
What is dot operator?
What is the synonym of procedure?
What is the destroy method?
What is difference between equals and hashcode method?
What is the difference between the >> and >>> operators?
What is singletonlist in java?
What is the main functionality of the remote reference layer?
What happens to the Exception object after handling an exception?
What is finally and finalize in java?