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