Vidyalelo
Java Programming · Q9

Java Generics

Programming · Java Programming · question 9

Q9

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`
Answer
D.
It allows any type to be used as a generic

Answer: Option C

Solution

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