Java-What is the difference between <? super E> and <? extends E>?

来源:互联网 发布:淘宝网黄金生命胶囊 编辑:程序博客网 时间:2024/06/18 02:02

What is the difference between <? super E> and <? extends E>?

The first says that it's "some type which is an ancestor of E"; the second says that it's "some type which is a subclass of E". (In both cases E itself is okay.)