Maha

Maha

  • NA
  • 0
  • 324.2k

NP105 reside on the Stack or Heap

Jun 28 2008 12:52 PM

Hi Guys

 

NP105 reside on the Stack or Heap

 

ReferenceType ref1 = new ReferenceType();

ref1.X = 5;

 

When we defined ref1 above way, in which place ref1 reside on. That mean I wish to know whether it is reside on the Stack or Heap

 

Please explain.

 

Thank you


Answers (5)