Differences among list,set and map

来源:互联网 发布:淘宝内衣店简介 编辑:程序博客网 时间:2024/06/08 06:09

1, list 允许重复值, set 和map的健值是唯一的

2,list是有序的,set和map是无序的, linkedHashMap是有序的

3,Arraylist 和VECTOR是数组实现的,随机查找快。 LinkedList是双链表的, 随机插入快

4, vector是线程安全的

0 0
原创粉丝点击