1. At the end of the clone implementation, we need an additional statement to make a separate copy of the data array for the clone to use. If we don’t make this copy, then our own data array and the clone’s data array will be one and the same (see the pictures on page 135).
2. System.arrayCopy(x, 0, y, 0, 10);
3. System.arrayCopy(x, 10, y, 33, 16);
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here