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 public class Student { int marks; public static void main(String args[]) { Student std1[] = …

Objects Array in Java Read More »