i into a 1234
value date does not change
when executing the test.change1 (date); when the local variables of the process disappears (i disappeared)
call End test.change2 (d1) when; disappears when local variables (method invocation End will immediately disappear),
the heap is
not immediately disappear when disappear when the garbage collector recovery (recycling garbage collector)
Chapter 3 - memory analytic
Guess you like
Origin blog.csdn.net/weixin_42814000/article/details/104751523
Recommended
Ranking