Java Generics Wildcards
Question mark (?) is the wildcard in generics and represents an unknown type. The wildcard can be used as the type of a parameter, field, or local variable and sometimes as a return type. We can't use wildcards while invoking a generic method or instantiating a generic class.
Негізгі бет Generics with Wildcards in Java
Пікірлер: 54