Skip to content
eknath

Linked List in Java - Collections Framework- DSA

Gist: A Linked list is dynamic array where a group of objects can be stored while following the insertion order and allow duplicates, the 2 types of linked list are singly and doubly linked lists, the default one is singly linked list where the elements can be traversed only in forward direction this is because unlike array here the elements are stored at random locations and only the node of each element knows the address of the next element. A simple example would be our circuit board here a point X may be connected to Y and Y connected to point Z here the insertion order is preserved and we can know the next point only by following the signals from the previous point. ...

February 23, 2022 · Updated: November 25, 2026 · 3 min · Eganathan R (Eknath)

Collection Interface - Java Collections Framework - DSA

Most people consider the collection as the root interface of Collections Framework and it is true to a great extent but another part of Collections Framework is Map Interface, we will see that later, Most Common methods which are applicable to all collections are defined in this interface for example add() to add an element, size() to get the size and much more, below is a table of most common methods. ...

February 11, 2022 · Updated: November 25, 2026 · 3 min · Eganathan R (Eknath)

Array List - Collections Framework in Java - DSA

Gist: An array list can store individual objects by following insertion order, here the initial capacity is 10 by default but can be modified as per the requirement, once the array list reaches its load factor then internal all the elements of the current array is copied to a new array with the new capacity and the reference variable will now be referring to this new array list and the old array will be dealt by the garbage collector. ...

February 11, 2022 · Updated: November 25, 2026 · 3 min · Eganathan R (Eknath)