Pregunta de entrevista de Salesforce

what’s the difference between shallow copy & deep copy?

Respuesta de la entrevista

Anónimo

23 may 2016

During my onsite, I didn’t get this one exactly correct. For the record, shallow copy means that a copy of one object will point to the same objects the original object pointed to. A deep copy means that any objects that are connected to the original object being copied will also be copied as well.