Map interface in Java
IdentityHashMap and its methods Before going into IdentityHashMap let us discuss about Map Hierarchy Map Hierarchy The below diagram shows the Map hierarchy consisting of classes and interfaces. Now let us discuss about IdentityHashMap and its methods What is IdentityHashMap? IdentityHashMap is the implemented class of Map interface. It uses reference equality which is called […]
HashMap and its methods Before going into HashMap let us discuss the following concepts 1. What is Map? 2. Map Hierarchy What is Map? Map is an interface in Java which stores multiple datas in the form of key and value pairs. Map interfaces come from java.utils package. Map accept unique keys and it does […]
LinkedHashMap and its methods Before going into LinkedHashMap let us discuss about Map Hierarchy Map Hierarchy The below diagram shows the Map hierarchy consisting of classes and interfaces. Now let us discuss about LinkedHashMap and its methods What is LinkedHashMap? LinkedHashMap is the implemented class of Map interface and sub class of HashMap class. It […]