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

List<? super Integer> foo3

Reading - Given the above possible assignments, what type of object are you guaranteed to receive when you read from List foo3:

  • You aren't guaranteed an Integer because foo3 could be pointing at a List<Number> or List<Object>.
  • You aren't guaranteed an Number because foo3 could be pointing at a List<Object>.
  • The only guarantee is that you will get an instance of an Object or subclass of Object (but you don't know what subclass).
If you want to change selection, open document below and click on "Move attachment"


Summary

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

Details



Discussion

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