When I execute:
 java B
for the following program, why does main of superclass A gets called? As I understand static methods belong to class level.
class A
{
    public static void main(String[] args)
    {
        System.out.println("A.main");
    }
}
class B extends A{ }
 
    