What is difference between ArrayList and LinkedList?

ArrayList internally uses a dynamic array to store its elements. LinkedList uses Doubly Linked List to store its elements . ArrayList is slow as array manipulation is slower. LinkedList is faster being node based as not much bit shifting required.

Sizin İçin Seçtik  How do you add methods to an ArrayList?

Leave a Reply

Your email address will not be published. Required fields are marked *