https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgimOh0TazKRbcgK1mi4zqnVbm3lUJQcVF43woC-LQ2CnB2hYHzpA313JXpT4tGM1spPDZB_ghI4viYMjOWNbyVHhySIWc-P8naywIx0k6BEWnuiLNhRMoRvxcHp6WuEJDfRLOBQGte0JUm/s1600/Difference+between+HashMap%252C+TreeMap%252C+LinkedHashMap+and+hashtable+in+Java.png

Reference: https://javarevisited.blogspot.com/2010/10/difference-between-hashmap-and.html

  • single threaded: use hashMap
  • MultiThreaded: use HashTable (now concurrentHashMap)

Post a Comment

Previous Post Next Post