I have a doubt .. consider the below situation

Code:
object a;
object b;
b=a;

now what happens to the memory thats allocated to object b ... and am I right in saying that the memory for the objects in the above example gets created on the stack..

thanx in advance