Shallow, Deep, And Lazy Copy — Java Basics

Let’s explore Java with an example of Shallow copy, deep copy, lazy copy.

Rakshit Shah
BeingCoders
Published in
4 min readJul 3, 2021

--

Shallow, Deep and Lazy copy — java example, Image by Author

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.

--

--

Rakshit Shah
BeingCoders

Computer Engineer | Foodie | Traveler| Love to learn & earn new things in daily life.