
- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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 Questions & Answers
- Difference between ArrayList and CopyOnWriteArrayList in Java
- Difference between ArrayList and HashSet in Java
- Difference Between ArrayList and Vector in Java
- Difference between Synchronized ArrayList and CopyOnWriteArrayList in Java
- Difference between ArrayList and CopyOnWriteArrayList in Java programming.
- What is the difference between Vector and ArrayList in Java?
- What is the difference between ArrayList and LinkedList in Java?
- Difference between List and Set in Java
- Difference between length of Array and size of ArrayList in Java
- Differences between ArrayList and LinkedList in Java
- Differences between ArrayList and Vector in Java
- Difference between Singly linked list and Doubly linked list in Java
- Difference between the list() and listFiles() methods in Java
- Difference Between Array and Linked List
- Difference between List and Tuples in Python.
Advertisements