类型擦除、原始类型与泛型限制 | JavaSE
本章覆盖:类型擦除的基本概念;擦除后的运行时类型信息边界;原始类型 raw type;unchecked warning;不能直接 new T() 的原因;不能创建泛型数组的核心原因;static 与类型参数限制;instanceof 与参数化类型的限制。
本章知识点
- 类型擦除的基本概念
- 擦除后的运行时类型信息边界
- 原始类型 raw type
- unchecked warning
- 不能直接 new T() 的原因
- 不能创建泛型数组的核心原因
- static 与类型参数限制
- instanceof 与参数化类型的限制