Home > DeveloperSection > Interviews > Why we cannot override static method?

Posted on    March-31-2015 12:35 AM

 Java Java 
Ratings:
 1 Answer(s)
  414  View(s)
Rate this:

Mayank Tripathi
Mayank Tripathi

Total Post:807

Points:4035
Posted on    March-31-2015 12:51 AM

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.

Don't want to miss updates? Please click the below button!

Follow MindStick