WHY WE CANNOT OVERRIDE STATIC METHOD?

Royce Roy

Total Post:51

Points:255
Posted by  Royce Roy
Java 
 608  View(s)
Ratings:
Rate this:
  1. Mayank Tripathi

    Post:807

    Points:4035
    Why we cannot override static method?

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

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!