Question:

What is difference between deep copy and shallow copy.?

by  |  earlier

0 LIKES UnLike

What is difference between deep copy and shallow copy.?

 Tags:

   Report

2 ANSWERS


  1. due to weight the draft on a ship will sit lower if it is full and higher if it is empty...and so goes the design of most ships and boat that they might have either better manueverability or more speed.


  2. Umm.. this is a programming question and not a boating question ;) But since you asked, here's an explanation as I understand it:

    If you 'deep copy' an object, you're making a copy in memory with its own memory addresses, and this is a true copy - copying a to b basically doubles the memory storage. In a shallow copy, you just tell b to 'point' to a's data. It's faster and takes up less memory, but it may be harder to manage.

    Now ask a boating question.

Question Stats

Latest activity: earlier.
This question has 2 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.