Java泛型:类型擦除

2015-10-08
阅读 4 分钟
18.7k
显然在平时使用中,ArrayList<Integer>()和new ArrayList<String>()是完全不同的类型,但是在这里,程序却的的确确会输出true。