Which of the following statements is true about arrays in Java?
Arrays cannot store any data.
Arrays can only store primitive data types.
Arrays can store both primitive data types and objects.
Arrays can only store objects.