Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

does retrieval time for hashmap varies based on the size of hashmap

 
suharika sai
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Does retrieval time varies for hashmap or hashset varies based on the size?
to be more clear, if there are 1000 objects in hashmap1 and 2000 objects in hashmap2, retrieving an object from which hashmap will be faster and why?
 
fred rosenberger
lowercase baba
Bartender
Pie
Posts: 12097
30
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried researching this at all? Have you done any work other than asking here? If so, what have you found?

We don't like to just hand out answers to homework problems (or any other problem). Do a little research, and them come back and tell us what you found, and ask about what doesn't make sense.
 
Campbell Ritchie
Sheriff
Posts: 48645
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch
You will find lots of useful information in the documentation.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic