ASP Programming Question:

Download Job Interview Questions and Answers PDF

Where do the reference-type variables go in the RAM?

ASP Programming Interview Question
ASP Programming Interview Question

Answer:

The references go on the stack, while the objects themselves go on the heap.

Download ASP Programming Interview Questions And Answers PDF

Previous QuestionNext Question
Where is the value-type variables allocated in the computer RAM?What is the difference between the value-type variables and reference-type variables in terms of garbage collection?