how can u apply shallow cloning and deep cloning to create
object?
Answer / 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 |
What is adapter in java?
What is the purpose of methodology?
What is arrays aslist in java?
What is the dot operator?
In which language java is written?
What is a protected method?
Can we extend singleton class?
Why Set interface contains unique elements, what internally implemented for this so that it contains unique elements?
Explain the difference between jvm and jre?
what is the difference between a threads start() and run() methods? : Java thread
Give an example of use of pointers in java class.
How do you make a thread in java?