摘要
泛型是Java SE 1.5的新特性,从表面上看,无论语法还是应用的环境,泛型类型(或者泛型)都类似于C++中的模板,但实际上它们之间有着本质的区别,其本质区别就在于Java泛型的类型擦除,本文重点介绍Java泛型的类型擦除以解决泛型中常见的令人迷惑的和使人头疼的问题。
Generics are the new characteristics of Java SE 1.5.On the surface,whether grammar or application environment,generic types (or generics) are similar to the template in c++,but in fact they are different in essence,the essential difference which lies in Java is a generic type erasure.This paper introduces the Java generic type erasure to solve common confusing and make the person headache.
出处
《计算机光盘软件与应用》
2012年第1期148-148,150,共2页
Computer CD Software and Application