This week's book giveaway is in the Agile forum.
We're giving away four copies of Head First Agile and have Andrew Stellman & Jennifer Greene on-line!
See this thread for details.
Win a copy of Head First Agile this week in the Agile forum!
    Bookmark Topic Watch Topic
  • New Topic

deep cloning  RSS feed

 
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: 22528
43
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!