How do I initialize this 2D array with null in Java? -


i have made 2-d array store references objects of children classes of parent class student.

student[][] = new student [5][4];  

now want initialize array null? how do it? trick doing @ once? also, wanted know if possible store references of children class in array of base class in java?

i want initialize values null. also, let's values filled , want overwrite values null. how do that?

by default java initialises reference objects null.


Comments

Popular posts from this blog

c# - Class in a list -

mysql - Django database model for my website -

ios - How to run a segue on itself OR another viewController -