且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

GC并在for循环中分配值

更新时间:2022-10-15 20:31:29

Garbage collection handles objects. What you have is a primitive local variable a which will be allocated on the stack.

Therefore the whole premise of this question is wrong.