Answers for "difference arraylist and list java"

6

java difference between array and list

In general (and in Java) an array is a data structure generally
consisting of sequential memory storing a collection of objects.

List is an interface in Java, which means that it may have multiple
implementations. One of these implementations is ArrayList, which
is a class that implements the behavior of the List interface using
arrays as the data structure.
Posted by: Guest on January-20-2021
5

ArrayList vs Vector

ArrayList is not thread safe/syncronized
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 November-28-2020

Code answers related to "difference arraylist and list java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language