Collection With Generics Chapter's Excercise Solution
Joined: Jul 23, 2009
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.