Do you want BuboFlash to help you learning these things? Or do you want to add or correct something? Click here to log in or create user.

#java #java-generics
You can't add any object to List<? extends T> because you can't guarantee what kind of List it is really pointing to, so you can't guarantee that the object is allowed in that List. The only "guarantee" is that you can only read from it and you'll get a T or subclass of T.
If you want to change selection, open document below and click on "Move attachment"


statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on



Do you want to join discussion? Click here to log in or create user.