An Array in Java is a collection of elements of same Data type or Object type. The array has a fixed length. ArrayList, on the other hand, can hold any number of elements because of its variable size at runtime. Shuffling is also called Randomizing elements.