This链接声明如下:
The instantiation of a generic type with actual type arguments is called a parameterized type . Example (of a parameterized type):
Collection<String> coll = new LinkedList<String>();
那么什么是参数化类型呢?
-
Collection<String>
或 -
LinkedList<String>
最佳答案
它们都是参数化类型:将其他类型作为参数的类型。
表达式两侧有不同类型的事实无关紧要,并且与多态行为有关,即因为 LinkedList
是 Collection
的子类型。
关于java - 参数化类型是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12551674/