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 |
how jvm allocates memory for stack?
can we have function for truncating the sign as like abs in oracle.
how to create an applet
What is early binding and late binding in java?
What are Transient and Volatile Modifiers?
3 Answers SAP Labs, TUP Manila,
what is the Diff. between Access Specifiers and Access Modifiers?
39 Answers BMC, Cyber Shot, Infosys, VTS, Wipro,
Explain about exception propagation?
Can an unreferenced object be referenced again?
Program to find greatest prime number in n numbers?
Does sprintf add a null terminator?
What do you understand by the bean persistent property?
How will you invoke any external process in java?