16. The following lists the complete contents
of the file named Derived.java:
1. public class Base extends Object {
2. String objType ;
3. public Base(){ objType = "I am a Base type" ;
4. }
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?
Select 1 correct answer:
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