Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

diff betwen Hasp Map and Hash Table

 
jacob deiter
Ranch Hand
Posts: 584
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the difference between hash Map and Hash Table.Why we use Map in our application.Why can't we use array list in entire application.
 
Campbell Ritchie
Sheriff
Pie
Posts: 48975
60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HashMap and Hashtable: please note the spellling.

Look in the API documentation for HashMap and Hashtable. The first line under HashMap tells the main differences, about synchronisation and about nulls.

A Map is completely different from an ArrayList. Go through the Collections part of the Java Tutorial and see the difference between a Map and a List.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic