Which of the following lines can be inserted to make the code compile? (Choose all that apply.)
class A {} //from ww w . ja va 2s .c om class B extends A {} class C extends B {} class D<C> { // INSERT CODE HERE }
A()
;B()
;C()
;A()
;B()
;C()
;A, B.
C is both a class and a type parameter.
This means that within the class D, when we refer to C, it uses the type parameter.
All of the choices that mention class C are incorrect because it no longer means the class C.