class sup
{
static void method(){System.out.println("Super");} // 1
}
class
test extends sup
{
public static void main(
String args[]) {}
static void method(){System.out.println("test");}
}
Is this an example of overriding? I thought static methods cannot be overridden...they can only be hidden... This concept is not clear to me. Can someone help me understand this?
Thanks!