线程安全:
Vector 已不推荐使用。
Hashtable
Enumeration
用java5.0新加入的:
ConcurrentLinkedQueue
ConcurrentHashMap
CopyOnWriteArrayList
CopyOnWriteArraySet
非线程安全:
ArrayList
LinkedList
HashMap
LinkedHashMap
TreeMap
来源:
http://kang.iteye.com/blog/364457
http://book.51cto.com/art/200812/103986.htm
http://www.cnblogs.com/modou/articles/1345995.html
http://mmqzlj.blog.51cto.com/2092359/550631
## ------------------------------------------
一般大家都知道ArrayList和LinkedList的大致区别:
1.ArrayList是实现了基于动态数组的数据结构,LinkedList基于链表的数据结构。
2.对于随机访问get和set,ArrayList觉得优于LinkedList,因为LinkedList要移动指针。
3.对于新增和删除操作add和remove,LinedList比较占优势,因为ArrayList要移动数据。
来源:http://pengcqu.iteye.com/blog/502676
##-------------------------------------------
IBM: Java 多线程与并发编程专题 http://www.ibm.com/developerworks/cn/java/j-concurrent/
Vector 已不推荐使用。
Hashtable
Enumeration
用java5.0新加入的:
ConcurrentLinkedQueue
ConcurrentHashMap
CopyOnWriteArrayList
CopyOnWriteArraySet
非线程安全:
ArrayList
LinkedList
HashMap
LinkedHashMap
TreeMap
来源:
http://kang.iteye.com/blog/364457
http://book.51cto.com/art/200812/103986.htm
http://www.cnblogs.com/modou/articles/1345995.html
http://mmqzlj.blog.51cto.com/2092359/550631
## ------------------------------------------
一般大家都知道ArrayList和LinkedList的大致区别:
1.ArrayList是实现了基于动态数组的数据结构,LinkedList基于链表的数据结构。
2.对于随机访问get和set,ArrayList觉得优于LinkedList,因为LinkedList要移动指针。
3.对于新增和删除操作add和remove,LinedList比较占优势,因为ArrayList要移动数据。
来源:http://pengcqu.iteye.com/blog/502676
##-------------------------------------------
IBM: Java 多线程与并发编程专题 http://www.ibm.com/developerworks/cn/java/j-concurrent/
本文探讨了Java中集合类的线程安全特性,对比了Vector、Hashtable等传统线程安全集合与Java 5引入的新线程安全集合如ConcurrentHashMap的区别。同时,也讨论了ArrayList与LinkedList在不同场景下的优劣。

被折叠的 条评论
为什么被折叠?



