• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Clonable interface

 
MaheshS Kumbhar
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As a curiosity I just wanted to know what are the scenario's where clonable interface can be used?
 
Wouter Oet
Saloon Keeper
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To indicate that an instance of that class can be cloned.
 
MaheshS Kumbhar
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know that Clonable interface is used to clone the object on which clone method is called. But which are the idle situations where clonable is likely to be used to clone the object. Because I read in javadoc that said to avoid using clonable interface or use it carefully.
 
Campbell Ritchie
Sheriff
Pie
Posts: 50189
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please search; there was a question about Cloneable earlier this week.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic