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