Here you can find the source of clone(Object[] array)
public static Object[] clone(Object[] array)
//package com.java2s; //License from project: Open Source License public class Main { public static Object[] clone(Object[] array) { return (array != null) ? array.clone() : new Object[0]; }/*from w ww . j av a2 s.com*/ }