Final answer:
In Java, an array can only hold elements of the same type.
Step-by-step explanation:
In Java, an array can only hold elements of the same type. This means that an array of integers can only store integers, an array of strings can only store strings, and so on. It is not possible to have an array that holds elements of different types.
For example, the following declaration creates an array of integers:
int[] numbers = new int[5];
And the following declaration creates an array of strings:
String[] names = new String[3];
Arrays are useful when you want to store multiple values of the same type in a single variable, but they are limited to storing elements of only one type.