Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 38155
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T14:39:48+00:00 2026-05-10T14:39:48+00:00

Anyone have a good rule of thumb for choosing between different implementations of Java

  • 0

Anyone have a good rule of thumb for choosing between different implementations of Java Collection interfaces like List, Map, or Set?

For example, generally why or in what cases would I prefer to use a Vector or an ArrayList, a Hashtable or a HashMap?

  • 1 1 Answer
  • 2 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T14:39:48+00:00Added an answer on May 10, 2026 at 2:39 pm

    I’ve always made those decisions on a case by case basis, depending on the use case, such as:

    • Do I need the ordering to remain?
    • Will I have null key/values? Dups?
    • Will it be accessed by multiple threads
    • Do I need a key/value pair
    • Will I need random access?

    And then I break out my handy 5th edition Java in a Nutshell and compare the ~20 or so options. It has nice little tables in Chapter five to help one figure out what is appropriate.

    Ok, maybe if I know off the cuff that a simple ArrayList or HashSet will do the trick I won’t look it all up. 😉 but if there is anything remotely complex about my indended use, you bet I’m in the book. BTW, I though Vector is supposed to be ‘old hat’–I’ve not used on in years.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need a excel-like grid control in MFC, do anyone have good suggestion to
Anyone have a good comparison between KKGridView and AQGridView ? Is there a reason
Does anyone know of a good reference or rule of thumb for when to
Does anyone have any good suggestions for creating a Pipe object in Java which
Does anyone have good resources to learn Java web services from creation and consumption
Anyone have any good tips on handling differences in web.config settings between environments? I've
Anyone have good book / article recommendation for procedural generation of background music? (No
DOes anyone have any good information with regards to when to log, I was
Does anyone have a good VBA way (or perhaps there is an MS Word
Does anyone have a good way of deleting duplicate transactions (same date, amount, biller,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.