Javas implementation of Generics This is a way to parameterize types. public class Pair<E> { E o1; E o2; } Type Restrictions public class Pair<E extends T>{ // ... }