This post originated from an RSS feed registered with Java Buzz
by Javin Paul.
Original Post: Difference between Array vs ArrayList in Java
Feed Title: Java67
Feed URL: http://java67.blogspot.com/feeds/posts/default?alt=rss
Feed Description: Java and technology tutorials, tips, questions for all programmers.
What is difference between Array and ArrayListis quite a
common question among beginners especially who started coding in C and C++ and
prefer to use Array. Both Array and Array Listare used to
store elements, which can be either primitive or objects in case of Array and
only objects in case of ArrayListin Java. Main difference between Array vs ArrayList in
Java is static nature of Array and dynamic nature of ArrayList. Once
created you can not change size of Array but ArrayListcan re-size
itself when needed. Another notable difference between ArrayList
and Array is that Array is part of core Java programming and has special
syntax and semantics support in Java, While ArrayList is part of Collection
framework along with other popular classes e.g. Vector,
or LinkedList. Let's see some more difference between Array and ArrayList
in Java in point form for better understanding.