What is the difference between Array and ArrayList in Java?

Copied from http://javahungry.blogspot.com/2015/03/difference-between-array-and-arraylist-in-java-example.html

  1. Resizable: Array is static in size that is fixed length data structure, One can not change the length after creating the Array object. ArrayList is dynamic in size .

  2. Iterating the values : We can use iterator to iterate through ArrayList. java.util.ConcurrentModificationException (remove list item should use Iterator)

  3. Adding elements : We can insert elements into the arraylist object using the add() method while in array we insert elements using the assignment operator.