A股上市公司传智教育(股票代码 003032)旗下技术交流社区北京昌平校区

 找回密码
 加入黑马

QQ登录

只需一步,快速开始

© 华子 中级黑马   /  2014-6-17 21:43  /  799 人查看  /  6 人回复  /   0 人收藏 转载请遵从CC协议 禁止商业使用本文

ArrayList 是线程不同步的,Vector是线程同步的,那LinkedList是同不同步呢?

6 个回复

倒序浏览
你不会百度。。。。。
回复 使用道具 举报
查阅Java Api 文档,有关LinkedList有以下解释:
Note that this implementation is not synchronized. If multiple threads access a linked list concurrently, and at least one of the threads modifies the list structurally, it must be synchronized externally.
即LinkedList 是线程不同步的。
回复 使用道具 举报
不同步你这纯属水帖
回复 使用道具 举报
我也觉得水贴  百度下或者查看下API就知道了
回复 使用道具 举报
查看API  ,不懂得类就看API 很明白,或者自己写下看源码也是一个很好的办法。
回复 使用道具 举报
水贴一枚!
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 加入黑马