Vidyalelo
Java Programming · Q15

Java Generics

Programming · Java Programming · question 15

Q15

What is the purpose of the `extends` keyword in Java generics?

A.
It specifies an exception type
B.
It indicates the superclass of a class
C.
It restricts the generic type to be a subclass or the same as the specified type
Answer
D.
It has no meaning in generics

Answer: Option C

Solution

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