What is Wildcards & it's type????
Plz ans it fast....
Answers
Answered by
4
Wildcards in Java. The question mark (?) is known as the wildcard in generic programming . It represents an unknown type. The wildcard can be used in a variety of situations such asthe type of a parameter, field, or local variable; sometimes as a return type.
The types of Wildcards in Java r÷
1÷Upper bounded
2÷Lower bounded
3÷Unbounded Java Wildcards
The types of Wildcards in Java r÷
1÷Upper bounded
2÷Lower bounded
3÷Unbounded Java Wildcards
Answered by
0
the question mark(?) is known as the wildcard in the generic programming.
it represents an unknown type. the wildcard can be used in variety of situations such as the type of parameters, field, or local variable. sometimes as the return type. unlike arrays, different instantiation of generic type are not compatible with each other.
this incompatibility may be softened by wildcard if is used as an actual type parameters.
it's type:-
1.upper bounded wildcards
2. lower bounded wildcards
3. unbounded wildcard
i hope it's helpful to you
please mark as brainliest
it represents an unknown type. the wildcard can be used in variety of situations such as the type of parameters, field, or local variable. sometimes as the return type. unlike arrays, different instantiation of generic type are not compatible with each other.
this incompatibility may be softened by wildcard if is used as an actual type parameters.
it's type:-
1.upper bounded wildcards
2. lower bounded wildcards
3. unbounded wildcard
i hope it's helpful to you
please mark as brainliest
Similar questions