Shallow Copy Vs Deep Copy | Java | OOPs concept

preview_player
Показать описание
What is Deep Copy and Shallow Copy in any OOPs language.
I have tried to explain the concept of Deep copy and Shallow copy using a very pictorial representation as well as working java code in eclipse.

You can get the code @ below location.

#OOPsConcept
#JavaConcept
#JavaMemoryModel
Рекомендации по теме
Комментарии
Автор

Great content sir. Really simple and indepth explanations. Requesting you to kindly continue this series of explaining the otherwise complex topics . Thank you !!

shwetabhat
Автор

Great explanation! Thank you very much.

arjunmandavkar
Автор

Thank you so much for the wonderful explanation..

ManojKumar-xjfw
Автор

In first example if we change name or roll no. of User A, will it affect in copy of User A?

arjunmandavkar
Автор

At around 5:00, you mention String is a primitive data type, String is not a primitive data type. Any data type that is not primitive is Reference type. String is an immutable reference so I guess it's safe leave it alone.

jonathankee
Автор

sir, What are applications of such type of cloning?

ramprasadnomula