Answers for "arraylist vs linkedlist vs vector in java"

16

what is the difference ArrayList vs LinkedList

ArrayList is array based, internally uses array
LinkedList consists of nodes/values that are related to each other
ArrayList and LinkedList both keep ordering
ArrayList and LinkedList both allow duplicates
Posted by: Guest on November-28-2020
3

arraylist vs vector in java

ArrayList is not thread safe
Vector is thread safe/syncronized
ArrayList is faster than Vector
Both allow duplicate values and keep ordering
Both are implementations of List interface
Posted by: Guest on January-06-2021

Code answers related to "arraylist vs linkedlist vs vector in java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language