解析Java泛型的类型擦除 |
| |
引用本文: | 张冬姣,陈艳,孟庆伟.解析Java泛型的类型擦除[J].计算机光盘软件与应用,2012(1):148+150. |
| |
作者姓名: | 张冬姣 陈艳 孟庆伟 |
| |
作者单位: | 大连海洋大学职业技术学院电气与信息工程系 |
| |
摘 要: | 泛型是Java SE 1.5的新特性,从表面上看,无论语法还是应用的环境,泛型类型(或者泛型)都类似于C++中的模板,但实际上它们之间有着本质的区别,其本质区别就在于Java泛型的类型擦除,本文重点介绍Java泛型的类型擦除以解决泛型中常见的令人迷惑的和使人头疼的问题。
|
关 键 词: | Java 泛型 类型擦除 |
Analysis of Java Generic Type Erasure |
| |
Authors: | Zhang Dongjiao Chen Yan Meng Qingwei |
| |
Affiliation: | (Dalian Fishe Ries University,Dalian Vocational&Technical College,Dalian 116300,china) |
| |
Abstract: | 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. |
| |
Keywords: | Java Generics Type erasure |
本文献已被 CNKI 等数据库收录! |
|