This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
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?