What is the use and point of unbound wildcards generics in Java?

后端 未结 6 1866
渐次进展
渐次进展 2020-12-01 05:12

I don\'t understand what is the use of unbound wildcards generics. Bound wildcards generics with upper boundary makes perfect sense, be

6条回答
  •  天涯浪人
    2020-12-01 05:50

    While using raw types means that you don't know about generics (because you're lazy or code was written ages ago), using means that you know about generics and explicitly emphasize that your code can work with any kind of objects.

提交回复
热议问题