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 |
Why java is considered dynamic?
What is the difference between a public and a non-public class?
Differentiate constructor and a method and how are it be used?
Do I need to import java.lang package any time? Why?
Write a java program to count the number of words present in a string?
wat is class level lock and object level lock
Explain pass by reference and pass by value?
What string is utf8?
wHAT IS DEFAULT SPECIFIER IN JAVA wHAT IS DEFAULT CONSTRUCTOR IN JAVA wHAT IS DEFAULT METHOD IN JAVA
If goto and const is reserve words than why it is not work in java?
What is an anonymous class?
explain about casting of objects?