Type parameters (type parameters) give type argrments (type argrments) position
public interface List<E>{
boolean add(E e);
}
List<String> list = new LinkedList<>();
list.add("123")
Used in the Java List interface source code <E>
to define type parameters, when we call the interface method, we use String
this type argument to replace
Reference:
http://www.angelikalanger.com/GenericsFAQ/FAQSections/TypeParameters.html#FAQ001