File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes clone - Shallow and Deep Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "clone - Shallow and Deep" Watch "clone - Shallow and Deep" New topic
Author

clone - Shallow and Deep

Niyas Ahmed Sheikh
Ranch Hand

Joined: Jun 15, 2005
Posts: 129
Hi,

What is clone() used for? What is shallow and deep copying. I searched this topic and found one example, but it is more complex and advanced one. So I can't understand it. Please if anyone explain clone,shallow and deep copy with a simple example will be helpful.

Thanks and Regards
Sunil Kumar Gupta
Ranch Hand

Joined: Aug 26, 2005
Posts: 824
Check this............


http://www.javaworld.com/javaworld/jw-01-1999/jw-01-object.html




Lack of will power has caused more failure than lack of intelligence or ability.
My Blog | Red5 Resources | Technology Update | Daily Technology Tips
Sunil Kumar Gupta
Ranch Hand

Joined: Aug 26, 2005
Posts: 824
For clone ..........

http://mindprod.com/jgloss/clone.html
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: clone - Shallow and Deep