This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes deep cloning Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic
Author

deep cloning

priyanaka jaiswal
Ranch Hand

Joined: Jun 03, 2011
Posts: 79
Hi All,


How achieve deep cloning in java? Is it in deep cloning , we have implement the cloneable interface and override clone() method ?then,
what is difference between deep cloning and shallow cloning .when in both cases we have to implement the Cloneable interface and override clone() method?I am really confused with
shallow and deep cloning in java ....


Thanks in advance
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

It seems to me that this other post of yours -- http://www.coderanch.com/t/593607/java/java/shallow-cloning -- covers the topic quite well. So if you still have questions, I would recommend continuing with that thread.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: deep cloning
 
Similar Threads
Clone Method
Cloneable
How to clone Value Objects
clone() method over ridding
Singleton class + object.clone() ?