Arrays: Java provides a very basic functionality termed as an array. Normally, users create a very simple fixed-size array in java.The array can have both objects and primitive data types of a class depending on the definition of the array.
int arr = new int
Arraylist: It is a collection framework in java. ArrayList can have many number of elements that can also be added later. There is no need to initialize the arrayList. But ArrayList only supports object entries, not the primitive data types. Many operations are supported by Java arrayList like indexOf(), remove(), etc.
public static void main(String args)
/* ........... Simple Array............. */
//Specify the size for array
int arr = new int;
arr = 1;
arr = 2;
arr = 3;
arr = 4;
arr = 5;
// More elements can’t be added to array arr
//Size needs to be mentioned.
ArrayList<Integer> arrL = new ArrayList<Integer>();
// We can add more elements to arrL