Hi..
i found that even if we use extends keyword
still the static methods will not be overridden in this case...
code
---------------------------------------------------------------------
public class RegTest
{
public static void main(String[] args)
{
A ob = new B();
ob.test();
A.test();
}
}
class A
{
public static void test()
{
System.out.println("done A");
}
}
class B extends A
{
public static void test()
{
System.out.println("done B");
}
}
----------------------------------------------------------------------
output
done A
but the expected output should be as
done B