Consider the following code in TestClass.java file:
package p;
private class TC extends java.util.HashMap{
public TC(){
super(100);
System.out.println("TC created");
}
}public class TestClass extends TC{
public TestClass(){
System.out.println("TestClass created");
}
public static void main(String[] args){ new TestClass(); }
}
What will be the output when TestClass is run?
Select 1 option
A. "TestClass created" as well as "TC created".
B. It will not compile because HashMap is a final class.
C. Only "TestClass created" will be printed.
D. Only "TC created" will be printed.
E. None of the above are correct.