






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







Introduction
3 methods to copy objects :
Copy by Handle :
Deep Copy :
Comparision : Feature Copy by Handle Shallow Copy Deep Copy Object memory Shared Separate Separate Nested Object Copy? Shared Shared Cloned Safe from overwrite? No No Yes Performance Fast Medium Slower
Advantages of Shallow Copy :
Advantages of Deep Copy :