Defining a Java array
Assuming we have a class Person can create an array of Persons:
Person [] p = new Person[4];
Creates an array object which can hold 4 person objects.
The variable p can hold a reference to an array object of type Person.
Some important things here ….