两者的差别在于 Arrays.copyOf 会创建一个新数组并返回,适合"拷贝出一个独立数组"的场景; System.arraycopy 则允许你指定原数组的起始位置、目标数组的起始位置以及拷贝长度,适合在已有目标数组上做部分拷贝。
Some results have been hidden because they may be inaccessible to you
Show inaccessible resultsSome results have been hidden because they may be inaccessible to you
Show inaccessible results