Collection Framework in Java
List Interface and its methods Before we start with List Interface let us look at Collection Hierarchy Collection Hierarchy The below diagram shows the Collection hierarchy consisting of classes and interfaces. As per the scope of the blog our discussion will be limited to the List Interface What is List Interface ? List Interface is […]
SortedSet Interface and its methods Before discussing about SortedSet interface let us look at Collection Hierarchy Collection Hierarchy The below diagram shows the Collection hierarchy consisting of classes and interfaces. As per the scope of the blog our discussion will be limited to the SortedSet interface What is SortedSet ? SortedSet is an interface which […]
TreeMapClass and its methods Before going into TreeMapClass 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 TreeMapClass and its methods What is TreeMapClass? TreeMapClass is the implemented class of Map interface,SortedMap interface and NavigationMap interface. It stores pairs […]
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 […]
WeakHashMap and its methods Before going into WeakHashMap 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 WeakHashMap and its methods What is WeakHashMap? WeakHashMap is the implemented class of Map interface. It is the Hastable based implementation of […]
LinkedList and its methods Before we start with LinkedList let us look at Collection Hierarchy Collection Hierarchy The below diagram shows the Collection hierarchy consisting of classes and interfaces. As per the scope of the blog our discussion will be limited to the LinkedList class What is LinkedList class ? LinkedList class is an implemented […]
Stack class in Collection Stack Class and its methods Before we start with Stack let us look at the following concepts 1.Legacy Classes 2.Collection Hierarchy Legacy Classes Legacy classes are those classes with the help of which we store various datas or Objects. These were present in JDK 1.0 version. The various legacy classes are […]
Vector Class and its methods Before we start with Vector let us look at the following concepts 1. Legacy Classes 2. Collection Hierarchy Legacy Classes Legacy classes are those classes with the help of which we store various datas or Objects. These were present in JDK 1.0 version. The various legacy classes are Vector, […]