posted 15 years ago
When I am changing the argument of addAnimal() from addAnimal(ArrayList<Animal> animals) to addAnimal(List<Animal> animals)
Why is the code compiling and running with out errors?
I know, in the first case its the actual object and in the second case its a reference type but I cant understand how it's making a difference.
The future belongs to those who believe in the beauty of their dreams.Dream BIG!