Shallow, Deep, And Lazy Copy — Java Basics
Let’s explore Java with an example of Shallow copy, deep copy, lazy copy.
Published in
4 min readJul 3, 2021
In object-oriented programming, object copying is creating a copy of an existing object, the resulting object is called an object copy or simply a copy of the original object. There are several ways to copy an object, most commonly by a copy constructor or cloning.