Here you can find the source of clone(T[] array)
public static <T> T[] clone(T[] array)
//package com.java2s; public class Main { public static <T> T[] clone(T[] array) { if (array == null) { return null; }/* w ww .j a v a 2s . co m*/ return array.clone(); } public static long[] clone(long[] array) { if (array == null) { return null; } return array.clone(); } public static int[] clone(int[] array) { if (array == null) { return null; } return array.clone(); } public static short[] clone(short[] array) { if (array == null) { return null; } return array.clone(); } public static byte[] clone(byte[] array) { if (array == null) { return null; } return array.clone(); } public static double[] clone(double[] array) { if (array == null) { return null; } return array.clone(); } public static float[] clone(float[] array) { if (array == null) { return null; } return array.clone(); } public static boolean[] clone(boolean[] array) { if (array == null) { return null; } return array.clone(); } public static char[] clone(char[] array) { if (array == null) { return null; } return array.clone(); } }