Possible Duplicates:
Why can’t static methods be abstract in Java Static methods and their overriding Why doesn’t Java allow overriding of static methods ?
Can we override static method in Java?
No. Static methods are tied to the class they're defined in. They're invoked through the class, not through an object, and there is no dynamic dispatch where overriding could happen.
You're probably confused because Java allows you to invoke static methods through an object reference. That's generally considered a design error, and it does not work like invoking instance methods, because the compile-time type of the reference decides which method gets invoked.
No, but you can shadow it.
精彩评论