Will final referenced objects be garbage collected just like other objects?
Hi all,
I have just finished spoting some memory leaks in my system; in which it seems that the objects pointed by final references seems not garbage collected (or not as efficiently as other objects).
So may I ask
1. Will the final references themself be recycled when getting out of the effective range (say the final local variable declared in a function after function finished) ? If not this means we will always have some reference to the objected referred and they will never get recycled, right ?
2. When an object is refered by a final reference, is there any difference in the behavior of collection?
Thanks in advance. I have tried looking up in JVM spec but cannot find it...

