泛型 将类型作为实参 原始类型和引用类型(封装类)

    技术2025-09-19  10

    泛型 将类型参数化的类、方法、接口。 类型作为实参。

    语法 class GeneralType </Type/>{ Type object; public GeneralType(Type object){ this.object = object } public Type getObj(){ return object; } } 泛型一般使用 查到表格记录一下

    原始类型 封装类 boolean Boolean char Character byte Byte short Short int Integer long Long float Float double Double

    Processed: 0.009, SQL: 9