I have an object that I need to copy in Java. I need to create a copy and run some tests on it without changing the original object itself.
I assumed that I needed t
Some options:
Cloneable for your object and put clone() method as public. See full explanation here: http://www.cafeaulait.org/course/week4/46.htmlSerializable interface for the object and all its fields.