In Java generics T is refered to a class parameter . It cannot be applied for primitive types.
T
See Arrays::sort() for details.