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