Examveda

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


This Question Belongs to Java Program >> Generics In Java

Join The Discussion

Related Questions on Generics in Java