filmov
tv
Wildcards Generics in java | wildcards Generics with example | Tutorial-48 | latest | 2020

Показать описание
generic wildcards in java: In generics, ? (question mark) represents wildcard, means unknown type. Wildcard can be applied in different situations as the parameter, field, or local variable, or even as a return type to a method. We can't use wildcards as type argument for a generic method invocation, a generic class instance creation, or a super type.There can be three types of Generic wildcards
Upper bound wildcards,
Unbounded wildcards,
Lower bound wild cards
Upper bound wildcards,
Unbounded wildcards,
Lower bound wild cards