Wildcard Capture

Java-Wildcard Capture

Wildcard Capture  Generic methods can do one more trick for us involving taming wildcard instantiations of generic types. The term wildcard capture refers to the fact that generic methods can work with arguments whose type is a wildcard instantiation of a type, just as if the type were known. For example, consider the following classes, … Read more…