Is there a reliable way to convert any object to a String and then back again to the same Object? I've seen some examples of people converting them using toString()
and then passing that value into a constructor to reconstruct the object again but not all objects have a constructor like this so that method wont work for all cases. What way will?