class A
{
public static void main(
String[] s)
{
System.out.println("hello ");
}
}
public class B extends A
{
}
Here i saved this file as B.java and compiled. when i run this B.java it is calling the main method from the super class A. how it is possible