Possible Duplicate:
Is Java “pass-by-reference”?
if we have big byte[]
array (like 40Mb) and we want to send it in method
method(array);
will the array be copied? So memory will increase by another 40Mb in Java env => 80Mb, right?
If yes, how can we destroy the 'first' array after calling the method?