Java Learning notes----------set Set

Source: Internet
Author: User

Java Collection-----Set
Collections: Like a container, you can put multiple objects into the container.
The Java collection is divided into: set, List, map three kinds of system.
Set: Unordered, non-repeatable;
List: Ordered, repeatable;
Map: Represents a collection of mappings, and each of the data that the map saves is a key-value pair.
Note: After Java 5, a queue system is added that represents a collection of queues implementation.

Collection and Array comparisons:
1. Once the array is initialized, the length is immutable;
2. Arrays cannot save data with mappings, such as score tables: Language---79;
3. The elements of an array can be either a primitive type or an object, and a collection can be a saved object only;

The Java collection is derived from two interfaces: collection and map, both of which are the root interfaces of the Java Collection framework.
They contain sub-interfaces and implementation classes such as

Initial study:

http://blog.csdn.net/fenglibing/article/details/8905007

Http://developer.51cto.com/art/201309/410205_all.htm

What is hashcode:

http://blog.csdn.net/fenglibing/article/details/8905007

Java Learning notes----------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.