If we have a group of same objects, array can only hold one type of object

int[] num = new int[3]; //0 values
String[] let = new String[3]; // 3 null values

Student[] ics4u = new Student[3] //3 null values (not primitive types)
//Student is object type 

System.out.println(ics4u[0].getName()); //null pointer exception (before)

for(int i = 0; i<ics4u.length; i++){
	ics4u[i] = new Student(); //initializes every object through iteration
}
System.out.println(ics4u[0].getName()); //prints "" (after)