Can any one tell clearly? thanks
Why we cannot override static method of class?
Collapse
X
-
The clearest, and simplest, answer I have for this...
and I may be wrong here as I don't do very much JAVA work:
You cannot override static method because overriding is based upon binding at runtime and static methods are bonded at compile time.
Understanding Class Members (The Java™ Tutorials > Learning the Java Language > Classes and Objects)This beginner Java tutorial describes fundamentals of programming in the Java programming language
-z -
concise answer
saravanaYour answer and this link answer seems to same
I reviewed your link... basically the same answer just different words - and a little more detail. You asked for a simple answer.
That the answers would be similar shouldn't surprise anyone.... it is after-all the same programing language.
-zComment
Comment