WHAT IS THE DIFFERENCE BETWEEN ARRAYLIST AND LINKEDLIST?

Mayank Tripathi

Total Post:807

Points:4035
Posted by  Mayank Tripathi
 833  View(s)
Ratings:
Rate this:
  1. Mayank Tripathi

    Post:807

    Points:4035
    What is the difference between ArrayList and LinkedList?

    ArrayList
    1)ArrayList uses a dynamic array.
    2)ArrayList is not efficient for manipulation because a lot of shifting is required.
    3)ArrayList is better to store and fetch data.

    LinkedList
    1)LinkedList uses doubly linked list.
    2)LinkedList is efficient for manipulation.
    3)LinkedList is better to manipulate data.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!