ArrayList, LinkedList, vector – Dudu: the most detailed in history
ArrayList, LinkedList, vector - Dudu: the most detailed in history
Let's compare ArrayList, LinkedList and vector. The JDK version of BZ is 1.7 0_ eighty
Often in the interview, or when we do the project, we will be confused by their differences. Or I don't know their usage very well. So let's look at their differences and usages today.
The following is the outline of this article:
I The difference between ArrayList, LinkedList and vector
II Explain ArrayList in detail
III Detailed vector
IV Detailed LinkedList
V How do you use them in the case of concurrency
If there is anything wrong, please forgive me and hope to criticize and correct.
Please respect the author's labor achievements and indicate the blog address for forwarding
I The difference between ArrayList, LinkedList and vector
ArrayList, LinkedList and vector all implement the list interface, and the methods used are also very similar. The main difference is that the implementation methods are different, and all have different efficiency for different operations.