File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Collection With Generics Chapter's Excercise Solution Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Collection With Generics Chapter Watch "Collection With Generics Chapter New topic
Author

Collection With Generics Chapter's Excercise Solution

Salim Tol
Greenhorn

Joined: Jul 23, 2009
Posts: 9



Hello Everybody,

I am learning Java Head First's chapter 16.
There is given a solution of exercise as "Be the compiler solution" on page 579.
The statements with a cross(i.e X) in the check box will compile or not?
if no then why?List<Animal> list=new ArrayList<Animal>() is chekced.
if yes then why?ArrayList<Dog> dogs=new ArrayList<Dog>() is uncheck.

Please Help Me Remove this Confusion!

With Regards,
Salim Tol
 
I agree. Here's the link: jrebel
 
subject: Collection With Generics Chapter's Excercise Solution
 
Similar Threads
ArrayList and List
Generics
Generics Help please !
about adding object to List<? super X>
wildcards in generics