5/26/2005

Java Tip 76: An alternative to the deep copy technique

Java Tip 76: An alternative to the deep copy technique presents a really neat deep copy technique. Dave Miller, the author, uses serialization to deep copy an object graph. The only thing stopping me from using this technique from now on is the performance compared to cloning. However, it's a really quick and dirty way to do deep copy if you don't have to do it often or just want to prove something out.

No comments: