SAP interview question

How hashMap and HashTable works?