how to create an array of objects
An array of objects is created just like an array of primitive type data items in the following way. Student[] studentArray = new Student[7]; The above statement creates the array which can hold references to seven Student objects. It doesn't create the Student objects themselves.