java container: 8, the difference between ArrayList and LinkedList what?

What is the difference between ArrayList and LinkedList?

ArrayList:
the underlying implementation is an array. Fast query, insert, delete slow. Thread-safe, high efficiency.
LinkedList:
the underlying implementation is a linked list. Slow query, insert, delete fast. Thread-safe, high efficiency.

See below for detailed analysis over links:
Java container --List interfaces (analog underlying code implementations ArrayList and LinkedList class)

Published 57 original articles · won praise 13 · views 1112

Guess you like

Origin blog.csdn.net/weixin_42924812/article/details/105054315