A good hash function for strings should have the following properties:
There are several differences between a HashMap and a Hashtable in Java:Synchronization: Hashtable is synchronized, while HashMap is not.