主要用于获取系统的属性数据和其他操作,构造方法私有的

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/f4eccb06-2e1b-49e2-bde0-ec43f25373f0/Snipaste_2021-05-20_15-35-44.png

psvm(String[] args){
  //arraycopy 复制
  //src-原数组 srcPos-从哪个位置开始复制0 dest-目标数组 destPos-目标数组的位置 length-复制的长度
  int[] arr = {20, 18, 39, 3};
  int[] dest = new int [4];
  System.arraycopy(src, srcPos, dest, destPos, length);
  sout(arr, 4, dest, 4, 4)
    
  // Arrays.copyOf(original, newLength)
}