Nested Generics with Wildcards

后端 未结 5 1019
小鲜肉
小鲜肉 2020-12-18 09:32

Why does this work:

List list = new LinkedList();

while this gives a type dismatch error:

List

        
5条回答
提交回复
热议问题