Java Face Question--set Frame

Source: Internet
Author: User

Let's take a look at the collection framework diagram

the Collection FrameWork is as Follows:

  Collection

├list

│├linkedlist

│├arraylist

│└vector

│└stack

└set

  Map

├hashtable

├hashmap

└weakhashmap

Collection is the most basic set interface, and a Collection represents a set of object, the Collection element (Elements).

   Map provides a key-to-value mapping.

List, linkedlist, ArrayList, Vector, stack, and set inherit from conllection

Hashtable, HashMap, weakhashmap inherit from Map

  the Collection Interface is a set of objects that allow Duplicates.

  the Set interface inherits Collection, but does not allow repetition, using one of its own internal arrangement mechanisms.

  the List interface inherits Collection, allowing repetition, placing elements in the order in which they are placed, and not rearranging them.

  the Map Interface is a pair of Key-value objects that hold some key-value Pairs. There can be no duplicates in map.
Key have their own internal arrangement Mechanism.

  The element type in the container is Object. When an element is obtained from a container, it must be converted to its original type.

Java Face Question--set Frame

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.