Understanding the ArrayStoreException in Java October 23, 2017 Ideally, when you do not know the data type that you want to store in an array, you can create an Object array and later associate it with the data