Java: Collection Class performance analysis

Source: Internet
Author: User

1.Java Set Frame Chart

-Collection Interface: 6 interfaces (short dotted lines), representing different collection types, are the basis of the collection framework.

-Abstract class: 5 abstract classes (long dotted line representations), partial implementations of the collection interface. Can be extended to a custom collection class.

-Implementation class: 8 implementation classes (real line representation), the implementation of the interface.

2.Java Container Class Introduction

The ①java container class can automatically adjust its own size.

The ②collection interface is a set of objects that allow duplicates.

③set interface Inherits Collection, does not allow duplication, uses one of its own internal arrangement mechanism.

The ④list interface inherits Collection, allows duplicates, places elements in the order in which they are placed, and does not rearrange them.

The ⑤map interface is a key-value object consisting of a pair, that is, a key-value pairs is held. There cannot be duplicate key in map. have their own internal arrangement mechanism.

Java 2 Simplified Set frame diagram

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.