Why can we not override static method?

Category: JavaWhy can we not override static method?
Editor">Editor Staff asked 2 years ago

Why can we not override static method?

1 Answers
Editor">Editor Staff answered 2 years ago

It is because the static method is the part of the class, and it is bound with class whereas instance method is bound with the object, and static gets memory in class area, and instance gets memory in a heap.