Thanks a lot Thomas. I remember reading that static methods cannot be overridden. But I was
testing the following piece of code. Is this overriding of a static method? Forgive me if I am making a blunder.
class ClassA {
static void print() {
System.out.println("Class A");
}
}
public class ClassB extends ClassA {
public static void main(
String args[]) {
ClassB b = new ClassB();
b.print();
}
static void print() {
System.out.println("Class B");
}
}