1 Reply Latest reply on Jun 1, 2012 7:19 AM by EJP

    Query regarding implementation of HashSet and TreeSet and AbstractSet

      I have found that the treeSet and HashSet extends AbstractSet and implements Cloneable and Serializable interfaces.

      What happens if AbstractSet itself implements Cloneable and Serializable interfaces, so that The HashSet and TreeSet need not to implement separately?

      Is it a design concern or is there any logic behind in doing so?

      I appreciate your quick response..

      Shiva kumar