At some point after the array goes out of scope, the garbage collector will reclaim the memory if there are no other references to it.
If you want to null your reference before the variable goes out of scope (keep in mind that if some other code has this reference, it won't get garbage collected):
Foo[][] fooArray = new Foo[2][3];
...
// this will null the reference to the array
fooArray = null;