I also agree with Harshil concerning static members can be inherited. However, static methods CANNOT be overriden
But i am able to run the following code
public class Apple {
static int z=6;
public static void disp(){
System.out.println("In Apple"+z);
}
}
class orange extends Apple{
public static void main(String agrs[]){
orange.disp();
}
public static void disp(){
System.out.println("In Orange"+z);
}
}
Is disp method is not overridden ???
plz clarify........