posted 16 years ago
Correct but suppose we have our return type as List<? super E> itself ! Then it creates a hell of a confusion!! For example look at this:
---It WORKS!
But NOT the following:
---this DOESNT work
there are other many possibilities which look like they should work but they dont!! "jo" can be returned as only some "super of Integer" like Number, but not Integer! And you have to define "ouput" as some <? super> or else it wont work!!If you have some explanation, please let me know
<i>If there were no Exceptions (not Errors!), Life would have kinda sucked!!</i>