Array of Wildcards

Java-Array of Wildcards

Array of Wildcards In general, wildcard instantiations of generics can be used as the base type for arrays in the same way that concrete instantiations can. For example: The first statement declares an array of unbounded wildcard instantiations of Gen. Each element of the array can hold an instance of the wildcard type, meaning in this … Read more…