Hello,every one When I want to store records into some kind of collection,I dont sure the one which I can select. Considering advantages or disadvantages,I need help to decide select Vector , ArrayList or other collections. Would you like to comment on? Regards, Richard
Regards, Richard
Andrew Monkhouse
author and jackaroo
Marshal Commander
Just one simple comment to add to Andrew's response. Vector and HashTable are considered older collections and Sun would rather you use the ArrayList and HashMap instead. Vectors and HashTables are automatically synchornized for you, which makes them a little slower. Mark
When I want to store records into some kind of collection,I dont sure the one which I can select. Considering advantages or disadvantages,I need help to decide select Vector , ArrayList or other collections. Would you like to comment on?
I d' like to comment your question. Sometimes, reading them, I just wonder if you are SCJP, which is a prerequisite before going on with the SCJD assignment. Anyway, as recognizing the right collection to be used in a particular context is a SCJP-exam objective, you should be able to do it by yourself, IMO. Regards, Phil. [ September 29, 2003: Message edited by: Andrew Monkhouse ]