kalyanakannan dhakshinamoorthi wrote:Need of Back-up Object instance,if further modification on object can be restored from old instance.
Welcome to the ranch.
I'm not sure I understand your question a bit more detail will help us be more specific. But that won't stop me from guessing what you mean.
There is a clone method defined for many objects. You will have to override it to make sure it's complete for your objects. When I googled for a good link for you I saw many hits saying don't use it without considering the consequences.
However if I understand what your question is it seems appropriate.
Note that just assigning temp=in will just add another reference to the same object so changing one changes both.
It's not what your program can do, it's what your users do with the program.