What is the output of running class C? class A { public A() { System.out.println( "The default constructor of A is invoked"); } } class B extends A { public B(String s) { System.out.println(s); } } public class C { public static void main(String[] args) { B b = new B("The constructor of B is invoked"); } }
B.
The constructor of B is invoked
C.
The default constructor of A is invoked The constructor of B is invoked
D.
The constructor of B is invoked The default constructor of A is invoked
E.
The default constructor of A is invoked