参考链接:https://blog.csdn.net/stitchD/article/details/122575606
-
使用for循环
-
Arrays.copyOf(int[] original, int newLength)
底层使用了System.arraycopy
-
copyOfRange(int[] original, int from, int to)
底层使用System.arraycopy
-
System.arraycopy(a,0,b,0,b.length);
由c实现,运行速度快
-
clone()
objectB=objectA.clone(); -
BeanUtils.copyProperties