Hacker News new | past | comments | ask | show | jobs | submit login

Java fixed the mutability issue for its generics, you can insert Cats and Dogs into a concrete List<Animal>, but you cannot insert them into a List<? extends Animal>.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: