ArrayLists和LinkedList的区别,下述说法正确的有?( )
ArrayList是实现了基于动态数组的数据结构,LinkedList基于链表的数据结构。
对于随机访问get和set,ArrayList绝对优于LinkedList,因为LinkedList要迭代器。
对于新增和删除操作add和remove,LinkedList比较占优势,因为ArrayList要移动数据。
对于新增和删除操作add和remove,LinkedList比较占优势,因为ArrayList要移动数据。
ArrayList基于数组实现,增删元素需要移动后面的数据
LinkedList基于链表实现,增删元素不需要移动后面的数据
LinkedList基于链表实现,增删元素不需要移动后面的数据