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