When to Use LinkedList Over ArrayList in Java



LinkedList should be used where modifications to a collection are frequent like addition/deletion operations. LinkedList is much faster as compare to ArrayList in such cases. In case of read-only collections or collections which are rarely modified, ArrayList is suitable.

Updated on: 2019-07-30T22:30:21+05:30

3K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started