0% found this document useful (0 votes)
62 views1 page

Java Collections Framework

The document compares common Java collection classes and lists their properties regarding ordering, allowing duplicate elements, key-based access, supporting value elements, and whether they allow null elements. It also indicates whether the collections are thread-safe.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
62 views1 page

Java Collections Framework

The document compares common Java collection classes and lists their properties regarding ordering, allowing duplicate elements, key-based access, supporting value elements, and whether they allow null elements. It also indicates whether the collections are thread-safe.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Collection

Ordering Random Key- Duplicate Access Value Elements ArrayList Yes Yes No Yes LinkedList Yes No No Yes HashSet No No No No TreeSet Yes No No No HashMap No Yes Yes No TreeMap Yes Yes Yes No Vector Yes Yes No Yes Hashtable No Yes Yes No Properties No Yes Yes No Stack Yes No No Yes CopyOnWriteArrayList Yes Yes No Yes ConcurrentHashMap No Yes Yes No CopyOnWriteArraySet No No No No Source: http://www.journaldev.com/1260/java-collections-framework-tutorial

Null Element Yes Yes Yes No Yes No Yes No No Yes Yes Yes Yes

Thread Safety No No No No No No Yes Yes Yes Yes Yes Yes Yes

You might also like