• Post Reply Bookmark Topic Watch Topic
  • New Topic

Collection With Generics Chapter's Excercise Solution  RSS feed

 
Salim Tol
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!