Could anyone please give me a brief full list of containers in Java? Some of the ones I know are Array, Arraylist, Hashtable, HashMap, HashSet, Node, NodeList, TreeNode, and TreeMap.
6 Answers
Essentially, all the docs about java "containers", or better known as collections, is here, with the most useful page being this one, brief list here. There are other implementations of the collections framework, like the fastutils framework that gives better performance if you knew the type you were going to use. Also Gnu Trove is another one similar to fastutils.

- 9,394
- 1
- 39
- 30

- 14,540
- 3
- 37
- 44
-
11 up for sharing links – Rahul Rastogi Dec 09 '15 at 17:04
-
Just for a link fix: https://fastutil.di.unimi.it/ – Shai Alon Mar 07 '23 at 11:24
You can check at official Sun tutorial.
EDIT
Check also the Google Collections library:
The Google Collections is a set of new collection types, implementations and related goodness for Java 5 and higher, brought to you by Google. It is a natural extension of the Java Collections Framework you already know and love.
Edit: There was a very nice cheatsheet for Java Collections which is not available anymore. There are lots of others though, like this one.
-
+1 for Sun's Collection tutorial. IMO, the best place to start. – Bill the Lizard Aug 17 '09 at 15:56
-
2@dfa - above link for cheatsheet looks outdated.It takes me to a site with ads. Can you modify the link? – cppcoder Aug 30 '16 at 18:34
"Containers are the interface between a component and the low-level platform-specific functionality that supports the component. Before a web component, enterprise bean, or application client component can be executed, it must be assembled into a Java EE module and deployed into its container." here is my source : http://docs.oracle.com/javaee/1.4/tutorial/doc/Overview3.html

- 37,782
- 12
- 108
- 140

- 21,260
- 6
- 105
- 81
-
Yes, thanks for posting this. He meant collections by containers but we've all made the mistake not knowing the terms. Java enterprise beans, application contexts, etc, are abstract (but important stuff). – gcr Apr 08 '21 at 22:57
Have a look-see at the Java Collections API, and at this page for more information

- 9,334
- 6
- 39
- 52
A good start is looking at which classes implement Collection<E> and Map<K,V>.

- 49,493
- 11
- 100
- 118
I don't know if I can give you a complete exhaustive list, but I believe most of the standard Java API containers should reside in the java.util package.

- 2,458
- 6
- 25
- 26