Hi, what are the difference between the Hash Table and Hash Map..? At what situation, we uses Hash Table / Hash Map? waiting for reply. regards, Gokul.
hi smartgoki, hash map implements the map interface. it belongs to the collection framework.we can store values in key value pairs.the methods are by default not synchronized. Hash table is a legacy class. here also we can store the values in key value pairs. the methods are synchronized.
Hash Table is Java 1.0/1.1 standard library class. Hash Map is a part of Java 2 container library which replaces Hash Table. Hash Table does not have any final methods.