LinkedList In Java

LinkedList class extends AbstractList class. LinkedList class implements List and Deque interfaces. LinkedList class is using doubly linked list to store elements in list. LinkedList can hold duplicate elements in list. LinkedList is non synchronized. Manipulation is faster in linkedlist as shifting is not required when new element is inserted or deleted from list. You … Read more

Java ArrayList Class

ArrayList class is sub class of collection interface which implements to List interface. ArrayList class provides resizable-array so it can grow automatically as per requirement which resolves fixed Array limitation where you have to pre-define the size of array. It can hold null elements too. It is not synchronized implementation so if multiple threads accessing … Read more

Java Collections Framework

What is Java Collections Framework? Java Collections Framework is group of different interfaces, classes and algorithms. In simple word, Collection means single unit of objects and framework means good architecture. It is best architecture to store group of reusable objects and manipulate them. Collection framework has many different interfaces, their sub interfaces and classes, their … Read more

Java List Interface

List interface in java is ordered collection so it can store elements in sequence. List interface is sub interface and it extends to Collection interface. List interface can hold duplicate elements so you can insert duplicate elements too. You can access elements from list by integer index. Collection framework has many interfaces in java and list … Read more