1 Reply Latest reply: Jun 1, 2012 2:19 AM by EJP RSS

    Query regarding implementation of HashSet and TreeSet and AbstractSet

    941022
      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..

      Thanks
      Shiva kumar