How can I create an exact copy of the object, not just link to it in Java?
1
Expert's answer
2010-09-15T12:19:03-0400
You have to use the method «clone» for the object instance. But not all classes support cloning, as for the support of this operation the class should realize the interface «Clonnable».
Comments
Leave a comment