| 1, bottom is array Implementation, essentially is a array , increase the deletion slow, query fast; 2, , out of sync; 3, implementing variable size array, allowing null elements; 4, the default initial capacity is small, the estimated allocation amount, the allocation of a larger capacity can reduce the cost of resizing; 5, a variable-size array, When more elements want to be added to the ArrayList, their size will grow dynamically, but this will bring overhead. Internal elements can be accessed through get and set; |
1, bottom linked list thread unsafe , Queue interface; 4, add and remove Element has better performance than ArrayList, the query is weaker than ArrayList; |
1. The bottom layer is realized by array ; 2, thread safety , synchronization; 3, low performance ; 4, Vector and ArrayList request more space when more elements are added, vector request double , ArrayList request size growth 50%; |