Integer[] array = new Integer[2];
array[0] = 4;
array = null;
What happens with object on which pointed first element of array (array[0]). Is it eligible to GC? If I set refer array to null are the all elements of array are set to null as well?
So my question is, wheter is eligible or not and why.
Thanks very much for help!
Michał