*
The moose likes Blog around the Campfire and the fly likes How to correctly override clone method in Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Other » Blog around the Campfire
Bookmark "How to correctly override clone method in Java" Watch "How to correctly override clone method in Java" New topic
Author

How to correctly override clone method in Java

Javin Paul
Ranch Hand

Joined: Oct 15, 2010
Posts: 281

Clone() method is one of those details of Java, which is most criticized but same time most overlooked as well. If you have to use clone() method or have to work on a project which is already using clone() than it become even more important to understand every subtle details of clone() method in Java. I have recently shared my experience on How to correctly override clone method in Java, which includes some basics of How cloning works, some bits on deep cloning and shallow cloning and some best practices while overriding clone method in Java. Let me know how do you find it.


http://javarevisited.blogspot.com - java classpath - Java67 - java hashmap - java logging tips java interview questions Java Enum Tutorial
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to correctly override clone method in Java
 
Similar Threads
Question regarding Cloneable interface and Subclasses
Object Class
Why are we encouraged to override methods from Object?
finallizer() & clone method are protected
Implementation of cloning