Unbounded wildcards in Java

后端 未结 6 1971
自闭症患者
自闭症患者 2020-12-02 23:55

Is there ever a difference between an unbounded wildcard e.g. and a bounded wildcard whose bound is Object, e.g.

6条回答
  •  甜味超标
    2020-12-03 00:17

    is EXACTLY the same as . I'm sorry I don't have a reference handy, but ... it is. :)

    EDIT: of course, I was only thinking from a particular perspective when I said that. Ignore my answer (which was quite correctly downvoted) and see the higher-rated answers for the real story.

提交回复
热议问题