Search Interview Questions | ![]() ![]() Click here and help us by providing the answer. ![]() Click Correct / Improve and please let us know. |
|
| ||||
Core Java - Interview Questions and Answers for 'Cloneable' - 5 question(s) found - Order By Rating | ||||
| ||||
Ans. For Cloning-exception,For deserialization-read.resolve() | ||||
![]() | ||||
![]() ![]() ![]() ![]() | ||||
| ||||
Ans. Cloneable and Serializable are Marker Interfaces, So these are empty interfaces with no variables. | ||||
![]() | ||||
![]() ![]() ![]() ![]() | ||||
| ||||
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. | ||||
![]() | ||||
![]() ![]() ![]() | ||||
| ||||
Ans. Cloneable is a declaration that the class implementing it allows cloning or bitwise copy of it's object state. It is not having any method because it is a MARKER interface. | ||||
![]() | ||||
![]() ![]() ![]() ![]() | ||||
| ||||
Ans. http://www.buggybread.com/2015/02/java-collections-classes-that-implement_58.html | ||||
![]() | ||||
![]() ![]() ![]() | ||||