List> vs List<? extends Map>

前端 未结 5 681
谎友^
谎友^ 2020-12-04 05:45

Is there any difference between

List>

and

List>
<         


        
5条回答
  •  旧时难觅i
    2020-12-04 06:06

    You cannot assign expressions with types such as List> to the first.

    (If you want to know why you can't assign List to List see a zillion other questions on SO.)

    提交回复
    热议问题