Vidyalelo
Java Programming · Q12

Java Generics

Programming · Java Programming · question 12

Q12

What is the purpose of the `` wildcard in a method parameter in Java generics?

A.
It restricts the method to accept only primitive types
B.
It specifies a return type
C.
It represents an unknown type
D.
It allows the method to accept arguments of any type
Answer

Answer: Option D

Solution

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