Bookmark Topic Watch Topic
  • New Topic

deep cloning

 
priyanaka jaiswal
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Sheriff
Posts: 21416
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Report post to moderator
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.
 
    Bookmark Topic Watch Topic
  • New Topic