J
Jon
If I allocate an array, eg:
double[] x = new double[10000];
then use the array, then at some later point, allocate it again, eg:
double[] x = new double[15000];
does the garbage collector know that the memory allocated the first time round can be garbage
collected, or do I have to set x to null first before allocating the second time around?
double[] x = new double[10000];
then use the array, then at some later point, allocate it again, eg:
double[] x = new double[15000];
does the garbage collector know that the memory allocated the first time round can be garbage
collected, or do I have to set x to null first before allocating the second time around?