[2932 views]
Array in Java is a fixed length data structure, whose size when defined cannot be changed. Whereas ArrayList in Java is a variable length Collection class, whose size gets changed as we add new element in it.
Array is faster than ArrayList because ArrayList uses a fixed amount of array. However when you add an element to the ArrayList and it overflows(exceeds its actual size defined at start). It creates a new Array and copies every element from the old one to the new one. This is the reason programmers prefer Array over ArrayList. But in real life applications, there is always a need to convert Array to ArrayList. This can be done directly by using inbuilt java function to convert String Array to ArrayList.