Question: what is the difference between clone and copy in java?
Answer: Clone will copy the structure of a data where as Copy will copy the complete structure as well as data. Here declare two string array arr1 and arr2 and then copy arr1 to arr2. The arr2 now contains the same values, but more importantly the array object itself points to the same object reference as the arr1 array.