Interview 3--java Collection Class summary

Source: Internet
Author: User

1. Collection classes

Arrays: You can store objects, or you can store basic data types, but only one type at a time, and the length must not be changed.

Collections: objects can be stored only, with varying lengths, and objects of different types may be stored.

Where the implementation of the border is the implementation class, the polyline border is an abstract class, the point line border is the interface

As you can see, the collection interface is the root interface of the collection class, and there is no direct implementation class for this interface in Java. There are three sub-interfaces List,set,queue, Note that map is not a collection sub-interface .

Methods in collection:

Interview 3--java Collection Class summary

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.