What are the characteristics of a shallow clone?
Java Interview Questions for Cloning and Cloneable
(Continued from previous question...)
What are the characteristics of a shallow clone?
If we do a = clone(b)
1) Then b.equals(a)
2) No method of a can modify the value of b.
(Continued on next question...)
Other Interview Questions
|