chen-w
7/24/2017 - 7:42 PM

Array vs. ArrayList

Array vs. ArrayList

Array: Simple fixed sized arrays that we create in Java, like below
      int arr[] = new int[10]   

ArrayList : Dynamic sized arrays in Java that implement List interface.
      ArrayList<Type> arrL = new ArrayList<Type>();
      Here Type is the type of elements in ArrayList to be created
      
      
http://www.geeksforgeeks.org/array-vs-arraylist-in-java/