一、当把Object数组,强转的具体的Integer数组时,会报错。代码如下://数组强转报错演示 Object[] numbers = {1,2,3}; Integer[] ints = (Integer[])numbers; 报错:java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to
Copyright © 2005-2025 51CTO.COM 版权所有 京ICP证060544号