Sorting Java Collection classes and Java Collection classes

Source: Internet
Author: User

Sorting Java Collection classes and Java Collection classes

A collection class is mainly used to store and hold other data. Therefore, a collection class is also called a container class. All collection classes are under the java. util package.

The Collection class is different from the array. The array element can be either a value of the basic type or an object (in fact, the referenced variable of the object is saved), while the set can only save the object.

Java's collection classes mainly consist of Collections and Map. Collections and Map are the root interfaces of the Java Collection framework. The Inheritance relationships of Java integration are as follows:

Inheritance relationship of Collection set Columns

Inheritance relationship of Map interface

2. Collection interface and Iterator interface 1. Collection Interface

The collection interface is the parent interface of the List, set, and Queue interfaces. The methods defined in this interface can be used to operate the Set set

 

 

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.