blog.juma.me.uk
Local variables scope in HotSpot
Assume the following code: I was under the impression that HotSpot would not garbage collect c before the local variable went out of scope although it is legally allowed to do so. I even heard of i…