what are different state of object?
<p>Recently I had an interview where I was asked "What are different states of object?"
I could not understand this question and I asked an interviewer to repeat.
Again question was like "what are different/various stages (previous it was states in question) of object?" still I didn't understand and again interviewer explained like "Do you know different states of objects like <strong><em>create</em></strong> and all"?</p>

<p>I answered like when we create object it goes to heap memory and after usage finished then it is eligible for garbage collection. 
Still interviewer was not satisfied with this answer. Again I was asked "What are different stages of object?"</p>

<p>Please explain me the interpretation of this question. </p>

<p>One more thing while you answer this question, try to start from <strong><em>create</em></strong> and go on because interviewer has given at least one stage/state of the object. If no then what would be the exact answer?</p>
