Difference between revisions of "Thread:Talk:XanderCat/Garbage Collection and Skipped Turns/reply (7)"

From Robowiki
Jump to navigation Jump to search
 
 
Line 1: Line 1:
 
This is correct.
 
This is correct.
  
My understanding of the snippet above is that you have 3 variables. 2 in the stack (references "a" and "b") and 1 in the heap (Object instance).
+
My understanding of the snippet above is that you have 3 variables. 2 local in the stack (references "a" and "b") and 1 in the heap (Object instance).
  
 
Some variables stay in the stack only, like primitives (double, float, int...).
 
Some variables stay in the stack only, like primitives (double, float, int...).

Latest revision as of 14:47, 4 April 2013

This is correct.

My understanding of the snippet above is that you have 3 variables. 2 local in the stack (references "a" and "b") and 1 in the heap (Object instance).

Some variables stay in the stack only, like primitives (double, float, int...).