Map detail points for Java

Source: Internet
Author: User
Common subclasses of Map:
Add a pair of elements at once. Collection adds an element at a time.
A map is also called a double-column collection, which is called a collection collection.
In fact, the map collection is stored in key-value pairs.
Key uniqueness must be guaranteed in the Map collection.
Map.entry is actually the external use of the inner class of the map interface. The iterator iterator can then be used for processing.

|--Hashtable :内部结构是哈希表,是同步的。不允许null作为键,null作为值。      |--Properties:用来存储键值对型的配置文件的信息,可以和IO技术相结合。        |--HashMap : 内部结构是哈希表,不是同步的。允许null作为键,null作为值。|--TreeMap : 内部结构是二叉树,不是同步的。可以对Map集合中的键进行排序。

Map detail points for Java

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.