How does get( key ) work when no HashTable has been populated or even declared? How's it goin' Doco? Do you mean HashMap? That's what your code shows. A HashMap will return null, a HashTable will throw an NPE. So for your getString() method, the String "null" would be returned.
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
Joined: Jan 30, 2002
Actually a HashTable won't compile since it is a Hashtable.