Get the App
SLTechnology News&Howtos  ›  Development  › 

Collection interface implementation class of Java and classification of Java container

Shulou Source: shulou.com Published: 2022-06-03 14:53:43 11月14日 Update

This article introduces the relevant knowledge of "Java collection interface implementation class and Java container classification". In the actual case operation process, many people will encounter such a dilemma, then let the editor lead you to learn how to deal with these situations! I hope you can read it carefully and be able to achieve something!

Java collection

The root interface of the Java collection is Collection, which inherits the iterative interface Iterable

List interface and Set interface inherit Collection interface

The Map interface is an independent interface and does not inherit the Collection interface

The common implementation classes of List interface are: ArrayList, LinkedList, Vector

The common implementation classes of Set interface are: HashSet, LinkedHashSet, TreeSet

The common implementation classes of Map interface are: HashMap, HashTable, TreeMap

Java containers can be divided into two main categories:

Collection

List

ArrayList

LinkedList

Vector (understood, obsolete)

Set

HashSet

LinkedHashSet

TreeSet

Map

HashMap

LinkedHashMap

TreeMap

ConcurrentHashMap

Hashtable (understand, out of date)

This is the end of the content of "Java's collection interface implementation class and Java container classification". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Tags: Interfaces containers commonly used classified outdated content more knowledge practicality learning and then dilemmas categories reality situations articles cases editing websites industries Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Shulou Information Linux macOS MySQL