This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
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.