Collection Framework in Java
ArrayDeque and its Methods Before discussing about ArrayDeque let us look at the Collection Hierarchy. Collection Hierarchy The below diagram shows the Collection hierarchy consisting of classes and interfaces. Now let us discuss about ArrayDeque class and its methods What is ArrayDeque ? ArrayDeque is a interface which stores all Collection elements. It is the […]
LinkedHashSet and its Methods Before we start with HashSet let us look at the 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 LinkedHashSet class What is LinkedHashSet ? LinkedHashSet is a subclass of […]
TreeSet and its Methods Before we start with HashSet let us look at the 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 TreeSet class What is TreeSet? TreeSet is a class which is […]
PriorityQueue and its methods Before discussing about PriorityQueue let us look at the Collection Hierarchy. Collection Hierarchy The below diagram shows the Collection hierarchy consisting of classes and interfaces. What is PriorityQueue? PriorityQueue is a class which stores all the Collection elements. It is the child class of Queue interface, grandchild class of Collection interface […]
HashSet and its Methods Before we start with HashSet let us look at the 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 HashSet class What is HashSet HashSet is a class which is […]
Queue Interface and its Methods Before we start with Queue Interface let us have a brief understanding of Collection What is Collection? Collection is an interface that consists of various predefined classes and interfaces with the help of which multiple data can be stored. Collection is the child class of Iterable interface,which is the topmost […]
Set Interface and its methods Before discussing about Set interface we need to know about the two concepts related to Set Interface Collection What is an Interface? Interface is a property in Java which assigns the behavior of class. Interface is of abstract type which consists of only abstract methods thus resulting in 100 percent […]