(Choose 1 answer)
The following lists the complete contents of the file named Derived.java:
1. public class Base extends Object {
2.3.String objType;public Base(){objType =
"I am a Base type";
} 4.
45678 5.}6.
7. public class Derived extends Base {
8. public Derived() { objType = "I am a Derived type";
9. }
10. public static void main(String args[]){
11. Derived D = new Derived();
12. }
13.}
What will happen when this file is compiled?
A. Two class files, Base.class and Derived.class, will be created.
B. The compiler will object to line 1.
C. The compiler will object to line 7.
Exit 39