Java generics “capture of ?”
A wildcard represents an unknown type. wildcard capture is the process of binding the value of a wildcard type to a new type variable. For example: List<?> list = …; shuffle(list); where <T> void shuffle(List<T> list) { … } Here, the unknown value of ? is bound to the new type variable T upon invocation … Read more