Examveda
Examveda

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: Option D


This Question Belongs to Java Program >> Generics In Java

Join The Discussion

Related Questions on Generics in Java