Week 06: Wildcards and Inference
-
After this unit, students should
- be aware of the meaning of wildcard
?and bounded wildcards. - know how to use wildcards to write methods that are more flexible in accepting a range of types.
- know that upper-bounded wildcard is covariant and lower-bounded wildcard is contravariant.
- know the PECS principle and how to apply it.
- be aware that the unbounded wildcard allows us to not use raw types in our programs.
- be aware of the meaning of wildcard
-
After this unit, students should
- be familiar how Java infers missing type arguments.