Generics
Generics
Generics
✓ Then we can call the method with a list of any subtype of Number class: like
List<Integer>, List<Float>, ...
Advanced Programming - Generics 20
6. Wildcard Types - Lower-Bounded
➢ Specifies the lower class in the hierarchy that can be used as a generic type.
✓ It is expressed using the super keyword.
➢ This type of bound can be used only with a wildcard
✓ Type parameters don’t support lower bound.
<T super K> - Not supported
<? super K> - supported