There are different use for ArrayList. Attempting to add an int or double primitive value to an ArrayList will result in an error is a false statement.
The key difference between Array and ArrayList in Java is that all developer often recognize that Array is known to be a fixed-length data structure but the ArrayList is simply a variable-length Collection class.
An ArrayList is known also as a collection that can be created using a for-each loop Arrays can hold primitive type as well as objects.
Conclusively, The element type of an array can be a primitive type or and object reference.
Learn more about ArrayList from
https://brainly.com/question/8045197