-C-O-N-C-E-P-T- Series : Java
Object's Shallow Copy and Deep Copy in Java:
Understanding concept:
Suppose I have following two objects:
Shallow copy: "obj2" refers to the memory block pointed by "obj1" as shown below.
Deep Copy: Here the data is actually copied over from "obj1" to "obj2" as shown below.
Java code:
(You can click on image to enlarge it)
Output:
Any comments are always welcome :)
5 comments:
Well done for this wonderful blog.
This topic have a tendency to become boring but with your creativeness its great.
I like your blog
I will pass on your article introduced to my other friends, because really good!
After reading the information, I may have different views, but I do think this is good BLOG!
Post a Comment