jQuery in Action, 3rd edition
The moose likes Beginning Java and the fly likes does retrieval time for hashmap varies based on the size of hashmap Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "does retrieval time for hashmap varies based on the size of hashmap" Watch "does retrieval time for hashmap varies based on the size of hashmap" New topic
Author

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

suharika sai
Greenhorn

Joined: Oct 14, 2009
Posts: 1
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

Joined: Oct 02, 2003
Posts: 11882
    
  18

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.

There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 44591
    
  34
Welcome to JavaRanch
You will find lots of useful information in the documentation.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: does retrieval time for hashmap varies based on the size of hashmap
 
It's not a secret anymore!