posted 22 years ago
Dale
Static methods aren't overridden they're hidden. If you have a static method with the same signature in a subclass as there is in the super class the subclass method will hide the superclass method. In other words static methods behave like variables and are subject to early binding not runtime.
Check out this code:
The output is:
super class method
sub class method
super class method
You can see that the last method call, if the method were overridden, would have called the subclass method.
hope that helps
------------------
Dave
Sun Certified Programmer for the Java� 2 Platform