List ArrayList LinkedList differences for Java Collection Collection

Source: Internet
Author: User

Overview

1, List features: linear sequential storage elements, elements can be duplicated, can be stored null

2, ArrayList, LinkedList

First, list features

As shown in this diagram, the list is stored in a linear structure , so it can be repeated or null. Of course, the specific sub-class is how to achieve, each has its own form.

Second, the method of the list

Most of these are not explained in the same way as the introduction of collection interfaces. Only part of the use of the more special points.

list<e> sublist (int fromIndex, int toindex)

Cond....

List ArrayList LinkedList differences for Java Collection Collection

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.