Examveda
Examveda

What is the purpose of the `? super T` wildcard in Java generics?

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

B. It represents an unknown type

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

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

Answer: Option C


This Question Belongs to Java Program >> Generics In Java

Join The Discussion

Related Questions on Generics in Java