Tuesday, February 27, 2018

Different between HashMap and HashTable in Java

Hash Table
Hash Table is synchronized;
There cannot be any null key or value


Hash Map

Map<Integer, String> testMap = new HashMap<Integer, String>();
Hash map not synchronized
There can be one null key and any null value
Has

No comments:

Post a Comment