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. Here is the list of classes that implements Collections Interface - http://www.buggybread.com/2015/02/java-collections-classes-that-implement.html|
Having Collection interface to extend Cloneable interface would mean necessarily implement clone method by all implementing classes. As not all collection classes allow duplicate elements, it makes no sense to clone elements for them.
|Help us improve. Please let us know the company, where you were asked this question :|
|Like Discuss Correct / Improve  cloneable  collections  collection interface  cloning|
|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 ?|
|What is the default data type of state variables in Clonable interface and Serializable interface ?|
|Why the singleton class should never implement Cloneable interface ?|