Qus:    Why Collection doesn’t extend the Cloneable and Serializable interfaces?
Dec 30, 2021 02:07 1 Answers Views: 238 SANJAY
Prev Next
Answers (1)
RANJIT Dec 31, 2021 23:51
Answer:   It is because, Collection is the root interface for all the collection classes (like ArrayList, LinkedList). If collection interface extends Cloneable/Serializable interfaces, then it is mandating all the concrete implementations of this interface to implement cloneable and serializable interfaces. To give freedom to concrete implementation classes, Collection interface don’t extended Cloneable or Serializable interfaces.

Post Your Answer
Guest User

Not sure what course is right for you?

Choose the right course for you.
Get the help of our experts and find a course that best suits your needs.


Let`s Connect