hashtable not updated, question for experts!

I have a Hashtahble which holds a pait <key, MyObject>, the I get the object via the get Method provided by the hastable class as follows:

MyObject obj=(MyObject)myHashTable.get(key);

then i modify the properties of my object:

obj.updateProperties();

and I have a thread that prints the properties of my object, so I get it in the same way via the GET method, but when I print the properties, they have not been updated.

MyObject obj=(MyObject)myHashTable.get(key);

obj.printProperties();

If I debug it I cans see how the value of the properties are updated within the "updateProperties" method in the class MyObject.

Anybody knows if when I use GET from the hashtable classe it returns a reference or a new instance of an object stored in the hashtable?

Many thanks in advance.

[847 byte] By [juavizgaa] at [2007-10-3 6:41:51]
# 1
I solve the problem it was a mistake in my source code.(SOLVED)
juavizgaa at 2007-7-15 1:31:00 > top of Java-index,Core,Core APIs...
# 2
It returns the same object you put in. It wouldn't be any use whatsoever otherwise.
ejpa at 2007-7-15 1:31:00 > top of Java-index,Core,Core APIs...