Core Java

CopyOnWriteArrayList

CopyOnWriteArrayList in Java CopyOnWiteArrayList is implementation class of List Interface which is  a thread safe version of ArrayList. Hence more than one thread can happily operate on this.  While Iterating the List we can do the modification at the same time and we will not get any exception. It implements Serializable, Clonable & RandomAccess Interface. In […]

CopyOnWriteArrayList Read More »

Difference between Hashmap and ConcurrentHashMap

Difference between HashMap and ConcurrentHashMap HashMap and Concurrent HashMap both are very important concept in java. So first let us discuss about HashMap and Concurrent HashMap then we will cover the differences between these two. Concurrent HashMap The underlying data structure of ConcurrentHashMap is HashTable. It allows concurrent read and Thread safe update operations. To

Difference between Hashmap and ConcurrentHashMap Read More »

Scroll to Top