layout: post title: Deep Copy/Shadow Copy an Object in Java date: 2021-05-12 00:00:00 description: tags: programming java notes categories: programming java notes —
This method copy all of the object and instance inside the class. But I personally not suggest using this method because of the performance concerns. This method converts the object into a ByteArray and then convert it back into a new object.
We can also use apache utils to implement it: