Year: 2019

Last Updated on October 19, 2024 by jt In Java, the HashMap and HashTable are both data structures that store data in key value pairs. When you store data in these, the key value is hashed, then is used as an index for fast access to the stored data. HashMap vs Hashtable HashMap Hashtable Introduced […]Continue reading

Last Updated on October 22, 2024 by jt Sorting collections in Java is a common task. Java provides several different ways we can sort Collections. In this article, we will discuss the options we have to sort collections in Java. Understanding the java.util.Collections.sort() Method The java.util.Collections.sort() method is a crucial utility in the Java programming […]Continue reading