Where would you use LinkedList and where an ArrayList?

1 answers
  • LinkedList is used in cases where we have a lot of add, remove and sequential iteration but not a lot of random access ( list.get(n) )
  • ArrayList is used when there is a lot of random access used ( list.get(n) ), but not a lot of add, remove.
shilpigupta22 shilpigupta22 [Author] 4 months ago votes 0