array of class objects java

Objects Array in Java

Just like with primitive data types, arrays, in Java, can be created with objects. Infact, objects are reference types. In the following program, Student objects arrays are created in different styles and their values are printed. Example on Objects Array

Student std1[] = new Student[3]; // creating array of…