ArrayList class in java

ArrayList class is a implantation class of LIst interface. Java ArrayList class uses a dynamic array for storing the elements. It inherits AbstractList class and implements List interface.

  1) Java ArrayList class is non synchronized.

  2) ArrayList allow duplicate objects (element) .

  3) Java ArrayList class maintains insertion order.

  4) Java ArrayList allows random access because array works at the index basis.


woman avatar