class Father
{
public static void go()
{
}
}
class son extends Father
{
public void go()
{
}
}
可以看到编译器会发出声明
This instance method cannot override the static method from Father
所以保证了static修饰的方法是不可以覆盖的。也可以想成是一个类只有一个静态方法,所以当然不允许某一个对象修改静态方法了