Java Generics is a compilation-only language feature; common types (such as String
and Integer
here) is erased at compile time, and the byte-code includes only the raw type, for example:
public void add(List strs) {...}
- , . , varargs, , .
, , List<String>
, List
String
, .