There are two types of copying reference data types namely shallow copy and deep copy. A shallow copy simply points to the reference address of the original collection structure (object or array) which holds the value in the new variable. When the field value is a reference type it just copies thereference address, no new object will be created.
1 Comment
Sort: