Is it safe to cast from List to List?

后端 未结 2 1614
夕颜
夕颜 2021-01-11 18:02

If you have a raw type in Java, you can safely assign/cast this to the same type with an unbounded wildcard. For example a List can be safely cast to a Li

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