how can u apply shallow cloning and deep cloning to create
object?
Answer Posted / kiran sonaje
Hi,
Please refer below link for shallow cloning
http://www.java2s.com/Code/Java/Language-
Basics/ShallowCopyTest.htm
and for deep cloing
http://www.java2s.com/Code/Java/Language-
Basics/DeepCopyTest.htm
Please please observe clone method to get more
clarification between deep and shallow cloning
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
Why destructor is not used in java?
What is meant by call by reference?
What does file separator do in java?
What do you mean by inner class in java? Explain
Explain about member inner classes?
What is the basic difference between string and stringbuffer object?
Explain the private protected method modifier?
How java enabled high performance?
What is stringwriter?
How do I get a substring?
How do you escape a string?
Is there a case when finally will not execute?
What is the internal implementation of set in java?
What is the reason behind using constructors and destructors?
What is a default constructor and also define copy contrucyor?