24 July 2024

#Collections_Difference

#Collections_Difference
Duplicate Insertion order Sorted by natural order Synchronized Null elements Iterator
ArrayList Yes Yes Yes Fail-fast
LinkedList Yes Yes Yes Fail-fast
CopyOnWriteArrayList Yes Yes Yes Yes Fail-safe
HashSet Yes Fail-fast
LinkedHashSet Yes Yes Fail-fast
TreeSet Yes No Fail-fast
ConcurrentSkipListSet Yes Yes No Fail-safe
HashMap 1 null key & many null values Fail-fast
Hashtable Yes No Fail-fast
ConcurrentHashMap Yes No Fail-safe
TreeMap Yes Null key not allowed, Allow many null values Fail-fast
ConcurrentSkipListMap Yes Yes No Fail-safe

No comments:

Post a Comment

Most views on this month