Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

clone - Shallow and Deep

 
Niyas Ahmed Sheikh
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

What is clone() used for? What is shallow and deep copying. I searched this topic and found one example, but it is more complex and advanced one. So I can't understand it. Please if anyone explain clone,shallow and deep copy with a simple example will be helpful.

Thanks and Regards
 
Sunil Kumar Gupta
Ranch Hand
Posts: 824
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check this............


http://www.javaworld.com/javaworld/jw-01-1999/jw-01-object.html


 
Sunil Kumar Gupta
Ranch Hand
Posts: 824
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For clone ..........

http://mindprod.com/jgloss/clone.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic