Shallow copy is used when a new instance type gets created and it keeps values that are copied whereas deep copy stores values that are already copied.
A shallow copy has faster program execution whereas a deep coy makes it slow.
Not a member yet? Register now
Are you a member? Login now