ArrayList、LinkedList、Vector的区别
摘要:
ArrayList 和Vector底层是采用数组方式存储数据,ArrayList的时间复杂度为0(1),ArrayList和LinkedList都是线程不安全的, Vector由于使用了synchronized方法(线程安全)所以性能上比ArrayList要差, LinkedList使用双向链表实现 阅读全文
posted @ 2019-10-22 17:29 眼幕的尽头 阅读(104) 评论(0) 推荐(0) 编辑