Vidyalelo
Java Programming · Q20

Java Generics

Programming · Java Programming · question 20

Q20

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

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board