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

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -

java - Digest auth with Spring Security using javaconfig -