int [] numbers = { 2, 3, 4, 5}; int [] numbersCopy = numbers; numbersCopy[2] = 0; System.out.println(numbers[2]);//Display 0 System.out.println(numbersCopy[2]);//Display 0 !!! Both = Same reference
int [] numbers = { 2, 3, 4, 5}; int [] numbersClone = (int[])numbers.clone(); numbersClone[2] = 0; System.out.println(numbers[2]);//Display 4 System.out.println(numbersClone[2]);//Display 0 !!! Not the same :)