List overviewList, as its name suggests, is in order. When the list is discussed, it is better to compare it with set, the elements in set are unordered and unique; The following is a class hierarchy chart, from which we can get an overview of the
Translated from: ArrayList vs. LinkedList vs. Vector1. Overview of the listJust like its name, list is an ordered sequence of elements. It is a good idea to compare it to set (a collection of 22 and unordered elements) when we are discussing the
JAVA ArrayList VS background list
The relationships between concepts are as follows:
Illustration:
List is an interface that inherits from the Collection interface. It represents an ordered queue. It allows repeated elements.AbstractList is an
Continue on to the container of the article to know the container, the Masons slowly take you into the list of the container commentary. Today Masons want to talk about ArrayList, LinkedList and vector comparisons.First, List reviewSequence (list),
1. array set
In fact, this concept is already included in the array section. In fact, the array set is new int [2];
Http://msdn.microsoft.com/zh-cn/library/57yac89c (vs.80). aspx
2. arraylist
The difference between arraylist and array:
API Address: http://docs.oracle.com/javase/6/docs/api/The relationship between the concepts involved is as follows:Graphic:The List is an interface that inherits from the collection interface. It represents an orderly queue. It allows for duplicate
reference:http://beginnersbook.com/2013/12/difference-between-arraylist-and-vector-in-java/JAVA CollectionsArrayList and Vector both use Array as a data structure internally. However there is few differences in the the "the" and "the" and "the" data.
ArrayList is the implementation class of the list interface, the underlying data structure is an array, and the linkedlist underlying data structure is a two-way loop linked list.So in the query ArrayList efficiency is high, adding and deleting
RelationshipList is Java Interface, ArrayList is Java Class, and they all belong to the Java.util package.The Java List is an ordered set (ordered collection), also known as a sequence (Sequence);Java ArrayList is a variable-sized array
This problem first looks at the common denominator:
The positions of the elements stored in these two collections are ordered, equivalent to a dynamic array that can be taken out of an element by position
Implements the list interface
The
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.