| Author |
K & B Generics Self Test Q16
|
palla sridhar
Ranch Hand
Joined: Oct 15, 2007
Posts: 111
|
|
When i try to compile the following code, i get a COMPILER ERROR. The answers given are: Can anyone explain why these answers give a COMPILER ERROR still ??. My doubt is how can List<Integer> or List<Number> be assigned a List<? super Integer> or List<? super Number>.....
|
Thanks and Regards,
[url]www.techlikes.com[/url]
*Nothing is CONSTANT in life, except CHANGE*
|
 |
ahmed yehia
Ranch Hand
Joined: Apr 22, 2006
Posts: 424
|
|
See K&B errata, the correct signature is:
|
 |
palla sridhar
Ranch Hand
Joined: Oct 15, 2007
Posts: 111
|
|
Thank you Ahmed, for showing the Error and also let me know abt the Errata.. Can you tell me the link where i can get proper ERRATA for K&B. In javaranch, its not so clear..
|
 |
 |
|
|
subject: K & B Generics Self Test Q16
|
|
|