Vidyalelo
Java Programming · Q6

Java Generics

Programming · Java Programming · question 6

Q6

In Java generics, what is the purpose of the `` syntax?

A.
It allows any type to be used as a generic
B.
It specifies an enum type
C.
It specifies a generic exception type
D.
It restricts the generic type to be a subclass of `SomeClass`
Answer

Answer: Option D

Solution

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