class A
{
A()
{
System.out.println("Inside A");
}
}
public class B extends A
{
B()
{
System.out.println("Inside B ");
}
public static void main(String args[])
{
B b=new B();
}
}
//In above program after running output obtained is :
Inside A
Inside B
My Question is, if I am calling Constructor of only B how it is calling
Constructor of A also?
Even if I add parameter in one of Constructors to identify them separately ,even then I am getting the same output. How?