Understanding the ArrayStoreException in Java
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
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