Category: 8. Java List

  • Stack Class

    In this tutorial, we will learn about the Java Stack class and its methods with the help of examples. The Java collections framework has a class named Stack that provides the functionality of the stack data structure. The Stack class extends the Vector class. Stack Implementation In stack, elements are stored and accessed in Last In First Out manner. That is, elements are…

  • Java Vector

    In this tutorial, we will learn about the Vector class and how to use it. We will also learn how it is different from the ArrayList class, and why we should use array lists instead. The Vector class is an implementation of the List interface that allows us to create resizable-arrays similar to the ArrayList class. Java Vector vs. ArrayList In…

  •  ArrayList Class

    In this tutorial, we will learn about the ArrayList class in Java. We will learn about different operations and methods of the arraylist with the help of examples. The ArrayList class of the Java collections framework provides the functionality of resizable-arrays. It implements the List interface. Java ArrayList Vs Array In Java, we need to declare the size of an…

  • Java List

    In this tutorial, we will learn about the List interface in Java and its methods. In Java, the List interface is an ordered collection that allows us to store and access elements sequentially. It extends the Collection interface. Classes that Implement List Since List is an interface, we cannot create objects from it. In order to use functionalities of the List interface, we…

  • Collection Interface

    In this tutorial, we will learn about the Java Collection interface and its subinterfaces. The Collection interface is the root interface of the Java collections framework. There is no direct implementation of this interface. However, it is implemented through its subinterfaces like List, Set, and Queue. For example, the ArrayList class implements the List interface which is a subinterface of the Collection Interface. Subinterfaces of Collection…

  • Collections Framework

    In this tutorial, we will learn about different interfaces of the Java collections framework. The Java collections framework provides a set of interfaces and classes to implement various data structures and algorithms. For example, the LinkedList class of the collections framework provides the implementation of the doubly-linked list data structure. Interfaces of Collections FrameWork The Java collections framework provides…