Email address:
SCJP/OCPJP 1.6 certification
Practice Exams and Training
Java Generics Explained » Discussions

Possible code typo

At 30:25 the line

Cage = new Cage<Cat>();

should be

cage = new Cage<Cat>(); //lower case c for ref. variable...


given the previous statement which is:

Cage<? extends Animal> cage = new Cage<Dog>();


Hi Marco,

That's right. Thanks for the heads up. In fact, this is why one should never type programming codes in a word processor. :)

ExamLab © 2008 - 2024