Search Interview Questions
| More than 3000 questions in repository.|
There are more than 900 unanswered questions.
Click here and help us by providing the answer.
Have a video suggestion.
Click Correct / Improve and please let us know.
|Interview Questions and Answers|
|Ans. It make sense only if we intend to modify either of the object and would like to preserve original state in other. Otherwise we can reuse the original object by making it singleton.|
|Help us improve. Please let us know the company, where you were asked this question :|
|Like Discuss Correct / Improve  clone  clone objects  prototype design pattern   immutable  immutability  immutability  cloning|
|What are different ways of object creation in Java ?|
|How to avoid cloning, serialization in the singleton class ?|
|What is a cloneable interface and what all methods does it contain?|
|Name few classes that implement Cloneable interface ?|
|Why do we use a copy constructor ?|
|Why Collection interface does not extend Cloneable interface ?|
|What is a prototype design pattern ?|
|Difference between shallow copy and object cloning ?|
|What is cloning in GIT ?|