Java Collections Source Code Series 1

Source: Internet
Author: User

Nonsense opening

To meet project requirements, you need to systematically Understand Java Collections. Therefore, you can easily record and serve others.

Java Collections

The Java Collections framework consists of four parts: interfaces, implementations, aggregate operations, and algorithms. Subsequent articles will also introduce these four parts separately.

Java Collections Definition

For more information about Chinese Baidu, see here. The official definition is provided here:

ACollections frameworkIs a uniied architecture for representing and manipulating collections. All collections frameworks contain the following:

  • Interfaces:These are abstract data types that represent collections. Interfaces allow collections to be manipulated independently of the details of their representation. In object-oriented versions, interfaces generally form a hierarchy.
  • Implementations:These are the concrete implementations of the collection interfaces. In essence, they are reusable data structures.
  • Algorithms:These are the methods that perform useful computations, such as searching and sorting, on objects that implement collection interfaces. The algorithms are said to bePolymorphic: That is, the same method can be used on your different implementations of the appropriate collection interface. In essence, algorithms are reusable functionality.
End with nonsense

Many articles have said that the Java Collections Framework is so good. In fact, I think there are two advantages: one is to reduce the number of times these coders hit the keyboard; second, people in the future can understand the code written by our predecessors.

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.