23

Java程序员必备基础:泛型解析

 4 years ago
source link: https://juejin.im/post/5e1954c0f265da3e1e0568de
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
前言 整理了Java泛型的相关知识,算是比较基础的,希望大家一起学习进步。 一、什么是Java泛型 Java 泛型(generics)是 JDK 5 中引入的一个新特性,其本质是参数化类型,解决不确定具体对象类型的问题。其所操作的数据类型被指定为一个参数(t

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK