Summary of Java Collections

Source: Internet
Author: User

The collection in Java is a very important point, to consolidate the knowledge of the study here, the knowledge of the rationale

According to the horse soldier's video, the summary is also very good, the collection is a "1136"

1 graphs, 1 classes collections,3 knowledge points: Enhanced for loop, generics, packaged and unpacked, 6 interfaces

1 graphs:

List and set are implemented collection interface, and HashSet is the implementation of the set interface, LinkedList and ArrayList implementation is the list method, HashMap is the implementation of the map interface

2.Collections:

For sorting, I may be more user-censored

3. Generics are important:

such as List l=new LinkedList, when there is no generic type is object, that any type can be used, in the use of there will be a lot of conversion, the generic is very good, in the case of the word I pass the type,eg:list<string> l= New linkedlist<string> so he can only receive String types

6 Interfaces:

is the content mentioned in Figure 1, in the use of the combination, there are some performance options, we can use the choice, but also remember that when we traverse the iterator method, he is in the collections class

The rest is the actual combat content, first of all, wait for the supplement

Summary of Java Collections

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.