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 8364953
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T12:33:03+00:00 2026-06-09T12:33:03+00:00

We can use any of these (includes List, ArrayList, Dictionary, Hashtable, Stack, Queue) to

  • 0

We can use any of these (includes List, ArrayList, Dictionary, Hashtable, Stack, Queue) to hold value or hold reference to other objects as a collection.

But, my question is which one is used when?

  • 1 1 Answer
  • 0 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. Editorial Team
    Editorial Team
    2026-06-09T12:33:04+00:00Added an answer on June 9, 2026 at 12:33 pm

    Lists

    Lists allow duplicate items, can be accessed by index, and support linear traversal.

    • ArrayList – An array-based list that doesn’t support generic types. It does not enforce type safety and should generally be avoided.

    • List – An array list that supports generic types and enforces type-safety. Since it is non-contiguous, it can grow in size without re-allocating memory for the entire list. This is the more commonly used list collection.

    Hashes

    Hashes are look-ups in which you give each item in a list a “key” which will be used to retrieve it later. Think of a hash like a table index where you can ask questions like “I’m going to find this object by this string value. Duplicate keys are not allowed.

    • HashTable – A basic key-value-pair map that functions like an indexed list.

    • Dictionary – A hashtable that supports generic types and enforces type-safety.

    Queues

    Queues control how items in a list are accessed. You typically push/pop records from a queue in a particular direction (from either the front or back). Not used for random access in the middle.

    • Stack – A LIFO (last in, first out) list where you push/pop records on top of each other.

    • Queue – A FIFO (first in, first out) list where you push records on top and pop them off the bottom.

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

Sidebar

Related Questions

Is there any way I can streamline my deployment process? I currently use these
Are there any free libraries I can use in c# to download email attachments?
Are there any HTTP headers one can use to detect a mobile users number
Is there any way I can use JPA or hibernate annotations to specify the
Is there any way I can use RegExp or Wildcard searches to quickly delete
Is there any way that I can use C# to load and then render
Is there any magic tools i can use to scan source code that was
Are there any free tools that I can use to convert a PDF document
Is there any way I can use a KMZ file in Google Maps? My
Is there any way that I can use JavaScript (and jQuery) to create a

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.