Wednesday, September 06, 2006

Do all value types reside is stack?

The simple answer is NO.
In any class we have variables at global level and local (specific to a method/function) level..
At the time of execution the method code will be loaded into stack andhence all the value types refered in the method will be reside in stack. If the values types are declared at class level those variables will be stored in heap.

1 comment:

Anonymous said...

Good information