dennismichel
Programmer
Hi
I have a jsp based application.
I'd like to know if it's good practice to set all variables to null, after using. I read that it helps the garbage collector to determine unused variables.
I have several variables such as String, arrays, vectors and arraylists.
I set to null only the vectors and arraylists.
Do you think, is it good to do it for String and array variables?
Thank's dennis michel.
I have a jsp based application.
I'd like to know if it's good practice to set all variables to null, after using. I read that it helps the garbage collector to determine unused variables.
I have several variables such as String, arrays, vectors and arraylists.
I set to null only the vectors and arraylists.
Do you think, is it good to do it for String and array variables?
Thank's dennis michel.