Creating new generic object with wildcard

后端 未结 2 1244
耶瑟儿~
耶瑟儿~ 2020-11-27 21:33

Please explain this generic code wildcard compile time error:

//no compile time error.
List x = new ArrayList<>(); 

//compile          


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