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
What are the Static and Dynamic Variables? Differentiate them.
Does constructor creates the object ?
What do you know about the garbate collector?
Is upper case in java?
How do weakhashmap works?
What is java and its types?
How is hashset defined in java?
How will you add panel to a frame?
How thread scheduler schedule the task?
Why is singleton not thread safe?
What is the return type of the main method?
What is a condition in programming?
What is a string token?
what is encapsulation in java? Explain
What is the use of beaninfo?