How can we copy an object in java without copying the reference. If any object is present inside then we should copy the value only with out modifying the original object reference.
How can this be done in a general way. That is we don't know whether the object is serializable or not.
I want to write a method which will deep copy the object passed to it. The object passing to it will be of any type.