1
JavaBeginner#generics
A generic type parameter constrained to extend a specific class or implement an interface, restricting which types can be used and enabling calling methods of that bound within the generic code.
static <T extends Comparable<T>> T max(T a, T b) {
return a.compareTo(b) > 0 ? a : b;
}
max(3, 5); // 5