Wildcard Arguments

Java-Wildcard Arguments

Wildcard Arguments There are two types of generic instantiation : concrete type instantiations and wildcard instantiations. Concrete type instantiations parameter arguments are real Java types. For example : Gen<Integer> and Gen<Double> are instantiations of the generic Gen class with the concrete types Integer and Double. Another kind of generic type instantiation is wildcard instantiation. Wildcards are … Read more…