STATIC Method In Java?
Dear Friends, I need answer for the following Question.Please Help Me with your answers.
Q.) Why static methods can't override?
[141 byte] By [
radhika743] at [2007-11-11 10:05:25]

# 1 Re: STATIC Method In Java?
The consept of Overriding will come in to picture only if the Objects are there. Which means the runtime polymorphism will come in to picture only we have Objects of derived class or sub class. But the existence of static method is not on Objects and in the class level, even before an object is created..
hope this clarifies...
# 2 Re: STATIC Method In Java?
The class references to static methods are bound at compile time ... the binding to overriding methods is done at runtime ... which is too late to affect static methods.
Go down to the "Programming Challenge" in this Newsletter:
http://java.sun.com/developer/onlineTraining/new2java/supplements/2003/Jun03.html
nspils at 2007-11-11 22:33:05 >
