关闭

Collection-List/ArrayList/LinkedList/Vector

标签: java
82人阅读 评论(0) 收藏 举报
分类:

List is an ordered collection. The user of this interface has precise control over where in the list each element is inserted.. The user can access the element by their integer index, and search for elements in the list. Also, unlike sets, list typically allows duplicated elements.

Array List is re sizable-array implementation of the List interface. Implements all optional list operations, and permits all elements, including null. In addition to implementing the list interface, this class can provides methods to manipulate the size of the array that is used internally to store the list. (This class is roughly equivalent to Vector, except that it is synchronized).

Note that this implementation is not synchronized. If multiple threads access an Array List instance concurrently, and at least one of the threads modifies the list structurally. It must be synchronized externally.


Linked List is a doubly-linked list implementation of List and Deque interface. Implements all optional list operations, and permit all elements,including nulls.

Note that this implementation is not synchronized. If multiple threads access an Array List instance concurrently, and at least one of the threads modifies the list structurally. It must be synchronized externally.


Vector is just like Array List, except that Vector is thread safe.


0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:1214次
    • 积分:68
    • 等级:
    • 排名:千里之外
    • 原创:6篇
    • 转载:0篇
    • 译文:0篇
    • 评论:0条
    文章分类