Bookmark Topic Watch Topic
  • New Topic

is it ok to use hashmap and arraylist instead of vector to make code optimized?

 
SunilK Chauhan
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Report post to moderator
I have gone through many programs and check it that they have used hasmap collection class to store data instead of vector even if data is small.
But is it ok to use hashmap for small data or large data to collect?
 
Stephan van Hulst
Bartender
Posts: 6583
84
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi Sunil,

Please UseOneThreadPerQuestion. I'll lock this one, and we'll continue the discussion here: http://www.coderanch.com/t/665967/java/java/hashmap-arraylist-vector-code-optimized
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!