I'm used to believe that local handle may causes memory leaks. Memory leaks is unaccessable process, that process remains there and we have no way to stop it. It occurs mostly in local variables.
I will just give one example case:
In act() method, I will create a list containing some actor:
Then I never call this:
I'm afraid the list will remain there forever if I don't clear (destroy) the list, that list will obviously become a burden for your memory. So the question is, will the local list get cleaned automatically after being used? Since in the next "act" we are unable to access that previous list. So we keep declaring list filled with actresses over and over again, logically, it will increase the consumed memory right? Hope you get my question :)
Thanks for any response.
List<Actress> list = getObjectsInRange(500, Actress.class);
list.clear();