Sorting in collection framework

We can sort the elements of: String objects Wrapper class objects User-defined class objects Collections class provides static methods for…

12 years ago

Difference between HashMap and HashTable in Java

The HashMap class is roughly equivalent to Hashtable, except that it is non synchronized and permits nulls. (HashMap allows null…

12 years ago

Hashtable class in collection framework

A Hashtable is an array of list.Each list is known as a bucket.The position of bucket is identified by calling…

12 years ago

Difference between TreeMap vs HashMap

Both TreeMap & HashMap are two different implementations of the Map interface. Even though this post is titled “TreeMap vs…

12 years ago

TreeMap class in collection framework

TreeMap class A TreeMap contains values based on the key. It implements the NavigableMap interface and extends AbstractMap class. It…

12 years ago

LinkedHashMap class in collection framework

This class extends HashMap and maintains a linked list of the entries in the map, in the order in which…

12 years ago

How does java Hashmap work internally

What is Hashing? Hashing in its simplest form, is a way to assigning a unique code for any variable/object after…

12 years ago