Computer Science, asked by samanta3797, 3 months ago

what is difference between 221 and 22 in java​

Answers

Answered by tanayg5050
0

Answer:

Well there's no difference between the first two - they're just using different names for the type parameter (E or T).

The third isn't a valid declaration - ? is used as a wildcard which is used when providing a type argument, e.g. List<?> foo = ... means that foo refers to a list of some type, but we don't know what.

Similar questions