• Post Reply Bookmark Topic Watch Topic
  • New Topic

Where exactly we make use of Clone objects in a real time?  RSS feed

 
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Please let me know ,Where exactly we make use of Clone objects in a real time?

Actually my question is , as memory is so cheap these days does anywhere Cloneable interface facility is used in any Application these days ??

Thanks in advance.
 
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
to make a Defensive copy of an Object which is Mutable. But Copy Constructor is preferable Over Cloneable [ for more detail please read Effective Java-Joshua Bloch]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!