java programming

HashMap Class Tutorial in java collection

The HashMap Class implements the Map Interface of the java collection framework . The HashMap stores the element Key-Value pair in the hash table. HashMap does not provide synchronization but allows to provide “Null” Keys and “Null” Values . The HashMap uses initial capacity and load factor as parameters. The initial capacity determines the number […]

Deque Interface Tutorial in Java Collection

The Deque Interface is a linear collection and is part of the Java Collection Framework. The Deque Interface in java collection is an “double-ended queue” which means that Deque supports insertion and removal at both end points of the queue. The Deque Interface supports both FIFO (First-In-First-Out) and LIFO ( Last-In-First-Out) implementations. Methods in Deque […]

Queue Interface Tutorial in Java Collection

The Queue Interface is part of the Java Collection Framework. The Queue Interface in java collection helps in storing the elements in Queue before they are processed. The Queue Interface in java collection allows the insertion of records in FIFO ( First In First Out) manner i.e. the records inserted first will be removed first.  […]

LinkedHashSet Interface tutorial in Java Collection

The LinkedHashSet Interface implements the Set Interface and store the elements in a hash table with linked list running through it. The The LinkedHashSet Interface allows unique elements like HashSet as it inherits the HashSet class . The LinkedHashSet creates a empty HashSet which provides default initial capacity as 16 and load factor as 0.75 […]

TreeSet Interface tutorial in Java Collection

The TreeSet Interface implements the Set Interface in java collection and store the elements in a tree like structure. The TreeSet Interface and does not support duplicate elements like List Interface. The TreeSet Interface creates a empty TreeSet when constructor TreeSet() is invoked. The TreeSet Interface allows operations like Add elements, search elements, add elements […]

Scroll to top
error: Content is protected !!