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 are three types of loops in java?
What is a nonetype?
Differences between C and Java?
What is instance means in java?
Can there be an abstract method without an abstract class?
What about features of local inner class?
What is canonical name in java?
Can we have multiple classes in single file ?
What is the difference between member variables initialization and assignment in a constructor?
What is the major difference between linkedlist and arraylist?
What primitive Java types? Howmany are they and what are their names?
What is api data?