Hello,
I have a beginners question for you
If I make 2 "new" on the same variable:
Example
Is that space that was allocated in memory with the first "new", be well removed by the garbage collector before the second allocation? Or is it going to be a conflict because the variable has 2 memory addresses? How the memory is allocated for the new object? Any help on this is appreciated. Thanks in advance.Code:byte[] b = new byte[sz + 100]; ... .../ / code ... ... b = new byte[sz];
Bookmarks