阅读背景:

有效的Java:什么是泛型数组创建警告

来源:互联网 

Creating an array of generic type objects is not permitted in Java. The array does not has enough type-information to check for ArrayStoreException and ClassCastException based on the type of it at runtime. That's the reason why. However, the first paragraph of Item 24 in Effective java says,Creating an array of generic type objects is no




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: