aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes K & B Generics Self Test Q16 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "K & B Generics Self Test Q16" Watch "K & B Generics Self Test Q16" New topic
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..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: K & B Generics Self Test Q16