Possible Duplicate:
Why doesn't Java allow overriding of static methods?
public class Start extends a{
@Override
static void f()//this shows up as an error in eclipse
{
System.out.println("child class");
}
public static void main(String[] args) {
a.f();
Start.f();
}
}
class a
{
static void f()
{
System.out.println("parent class");
}
}
why does java does not support static method overriding.....when I use annotation it definitely points out that static method can not be overriden ....please provide me a simple explanation