aspose file tools*
The moose likes Java in General and the fly likes Exact difference between deep copy and shallow copy with real time example Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Exact difference between deep copy and shallow copy with real time example" Watch "Exact difference between deep copy and shallow copy with real time example" New topic
Author

Exact difference between deep copy and shallow copy with real time example

manasa manogna
Greenhorn

Joined: Mar 29, 2011
Posts: 22
Hi Friends

Recently, in an interview, I faced a question like what is the difference between deep copy and shallow copy. And they asked to give a real time example of this concept usage. Can you please help me to know the exact difference between Deep copy and Shallow copy with a real time example.
Junilu Lacar
Bartender

Joined: Feb 26, 2001
Posts: 5287
    
  10

Please try to do a SearchFirst (←click) because there are a number of previous threads in these forums that you might find useful. Try to look at some Google search results for "deep copy in Java" as well. Come back if you have more specific questions.


Junilu - [How to Ask Questions] [How to Answer Questions]
Pat Farrell
Rancher

Joined: Aug 11, 2007
Posts: 4659
    
    5

manasa manogna wrote: a real time example of this


Do you really mean to use the term "real time" here?
Or perhaps you are trying to get a real world example?

In programming and computer science, "real time" is a very specialized term with precise meanings.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Exact difference between deep copy and shallow copy with real time example