Examveda

In Java generics, what is the purpose of the `? super T` wildcard?

A. It allows any type to be used as a generic

B. It represents an unknown type

C. It restricts the use of the `super` keyword

D. It allows you to specify that the type must be a superclass of `T`

Answer: Option D


This Question Belongs to Java Program >> Generics In Java

Join The Discussion

Related Questions on Generics in Java