posted 22 years ago
Can someone explain to me cloning ( or the clone() method of Object class)
Also for arrays does cloning work in the same way.
Moreover what do we actually mean by shallow copying & deep copying.
For shallow copying is it that changes made in the original will be reflected in the new object ?
Pls explain me with a good example to clear this doubt of mine.
Thanks in advance
( I am having my exam one day later on , so an immediate reply would be nice )