Suppose I have an interface that implements a collection ( List , Set ).

What is the difference between such internal structures of collections:

  1. List

  2. An array with the initial number of elements 10 and an increase in the number of elements by 30%.

    1 answer 1

    If we take into account the interfaces List and Set, then:
    List - allows duplicates
    Set - no
    Simple implementation of the list - makes the transfer of data from one array to another when filled.
    That is, in essence, your point 2 is the implementation of point 1.