Memmory Referene for a HashTable
<p>I have a small question regarding a Hash Table. Suppose i have a String as a key and a complex object as a value stored in a Hash Table. </p>

<p>Now i use "get" to obtain the object from the same Hash Table. Now if the variable that i stored the reference of the object that i got from the Hash Table is set to null, this would have no affect on the memory of the object in the Hash Table. How can i destroy the object in the Hash Table?</p>

<p>One way might be to put null as the value for my given key ? Is there another other more elegant way ? </p>
