Java Hashtable Class

Hashtable Class implements Map, Cloneable and Serializable interfaces and also extends Dictionary class. It maps keys to values in table format. Every key is linked to it’s value. In Hashtable, any object which is non null will be used as a key or it’s value. Initial capacity and load factor are two parameters of Hashtable … Read more

Java ArrayDeque Class

ArrayDeque is one of the collection framework member which implements Deque, Cloneable and Serializable interfaces. ArrayDeque provides Resizable-array implementation so it has no capacity restrictions and it will grow as per requirement. In the absence of external synchronization, they are not thread safe. So they do not allow multiple threads to access it concurrently. Also … Read more

Java Deque Interface

Deque is one of the collection interface which extends Queue interface. Deque is linear collection which allow us to add and remove element from both ends of the queue. It is “double ended queue” that’s why it is called Deque and usually pronounced as “deck”. Deque has different methods to perform insert, delete and examine … Read more

Java PriorityQueue Class

PriorityQueue Class is one of the collection framework class which implements Queue, Serializable, Iterable and Collection interfaces. It is using natural ordering to order then elements of PriorityQueue.Or elements will be ordered based on Comparator provided at queue construction time depending on which constructor is used. PriorityQueue is based on a priority heap. Heap is … Read more