
- Java Tutorial
- Java - Home
- Java - Overview
- Java - Environment Setup
- Java - Basic Syntax
- Java - Object & Classes
- Java - Constructors
- Java - Basic Datatypes
- Java - Variable Types
- Java - Modifier Types
- Java - Basic Operators
- Java - Loop Control
- Java - Decision Making
- Java - Numbers
- Java - Characters
- Java - Strings
- Java - Arrays
- Java - Date & Time
- Java - Regular Expressions
- Java - Methods
- Java - Files and I/O
- Java - Exceptions
- Java - Inner classes
- Java Object Oriented
- Java - Inheritance
- Java - Overriding
- Java - Polymorphism
- Java - Abstraction
- Java - Encapsulation
- Java - Interfaces
- Java - Packages
- Java Advanced
- Java - Data Structures
- Java - Collections
- Java - Generics
- Java - Serialization
- Java - Networking
- Java - Sending Email
- Java - Multithreading
- Java - Applet Basics
- Java - Documentation
- Java Useful Resources
- Java - Questions and Answers
- Java - Quick Guide
- Java - Useful Resources
- Java - Discussion
- Java - Examples
Difference Between List and ArrayList in Java
In this post, we will understand the difference between List and ArrayList in Java.
List
It is an Interface.
It extends the Collection framework.
It can’t be instantiated.
It can be used to create a list of elements/objects.
These objects are associated with their index numbers.
It creates a collection of elements which are stored in a sequence.
These elements are identified and accessed using an index.
ArrayList
It is a class.
It extends the ‘AbstractList’ class.
It implements ‘List’ interface.
It can be instantiated.
This class is used to create a dynamic array, which would contain objects.
It creates an array of object.
This array can be developed dynamically.
- Related Articles
- Difference between ArrayList and CopyOnWriteArrayList in Java
- Difference between ArrayList and HashSet in Java
- Difference between Synchronized ArrayList and CopyOnWriteArrayList in Java
- Difference between ArrayList and CopyOnWriteArrayList in Java programming.
- What is the difference between ArrayList and LinkedList in Java?
- Difference between length of Array and size of ArrayList in Java
- Difference between Array and ArrayList
- Difference between ArrayList and Vector
- Difference between List and Set in Java
- Differences between ArrayList and LinkedList in Java
- Difference between Singly linked list and Doubly linked list in Java
- Difference between the list() and listFiles() methods in Java
- Get Synchronized List from ArrayList in java
- Display Sub-List of ArrayList in Java
- What is the difference between the size of ArrayList and length of Array in Java?

Advertisements