• Post Reply Bookmark Topic Watch Topic
  • New Topic

collection related questions  RSS feed

 
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have some basic collection related queries ,they are like :

1. Which performs better HashMap or HashTable or ArrayList and in which
situation ?
2.Why addition/deletion is faster in LinkedList ?
3.Given a situation I have to load a million objects into memory .Which one is better Array,ArrayList or Vector ? and why ?
Regards,
Ayan Dutta
 
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Post your business requirments here, so that we can suggest the best possible way.

If you have asked question just for the shake of knowledge, I suggest yout to download Thinking In Java from here and read the chapter related to Collection Framework.
 
Ranch Hand
Posts: 1249
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Chetan Parekh:
Post your business requirments here, so that we can suggest the best possible way.

If you have asked question just for the shake of knowledge, I suggest yout to download Thinking In Java from here and read the chapter related to Collection Framework.


Chetan,

Thankx for providing .chm link for TIJ 2. . I was looking it for...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!