Difference between deep copy and shallow copy.

Junior Java

Answer

Shallow copy copies references; objects shared.
Deep copy duplicates all objects; independent copies.

Want to bookmark, take notes, or join discussions?

Sign in to access all features and personalize your learning experience.

Sign In Create Account

Source: SugharaIQ

Ready to level up? Start Practice