I have made a 2-d array which will store references to objects of the children classes of parent class Student.
Student[][] a = new Student [5][4];
Now I want to initialize this array with null? How do I do it? Any trick to doing it at once? Also, I Wanted to know if it is possible to store references of children class in an array of Base class in Java?
I want to initialize all the values with null. Also, let's say some values are filled and then I want to overwrite the values with null. How do I do that?
Student[][] a = null;? You have to be more precise. you probably want to initialse all values in the array with null, which would be done with nested for-loops.