1. 程式人生 > >Java-What is the difference between

Java-What is the difference between

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.)