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

  • Home
  • SEARCH
  • 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 144683
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T08:17:32+00:00 2026-05-11T08:17:32+00:00

I may be teaching a Java crash-course soon. While it is probably safe to

  • 0

I may be teaching a ‘Java crash-course’ soon. While it is probably safe to assume that the audience members will know Big-O notation, it is probably not safe to assume that they will know what the order of the various operations on various collection implementations is.

I could take time to generate a summary matrix myself, but if it’s already out there in the public domain somewhere, I’d sure like to reuse it (with proper credit, of course.)

Anyone have any pointers?

  • 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. 2026-05-11T08:17:32+00:00Added an answer on May 11, 2026 at 8:17 am

    The book Java Generics and Collections has this information (pages: 188, 211, 222, 240).

    List implementations:

                          get  add  contains next remove(0) iterator.remove ArrayList             O(1) O(1) O(n)     O(1) O(n)      O(n) LinkedList            O(n) O(1) O(n)     O(1) O(1)      O(1) CopyOnWrite-ArrayList O(1) O(n) O(n)     O(1) O(n)      O(n) 

    Set implementations:

                          add      contains next     notes HashSet               O(1)     O(1)     O(h/n)   h is the table capacity LinkedHashSet         O(1)     O(1)     O(1)  CopyOnWriteArraySet   O(n)     O(n)     O(1)  EnumSet               O(1)     O(1)     O(1)  TreeSet               O(log n) O(log n) O(log n) ConcurrentSkipListSet O(log n) O(log n) O(1) 

    Map implementations:

                          get      containsKey next     Notes HashMap               O(1)     O(1)        O(h/n)   h is the table capacity LinkedHashMap         O(1)     O(1)        O(1)  IdentityHashMap       O(1)     O(1)        O(h/n)   h is the table capacity  EnumMap               O(1)     O(1)        O(1)  TreeMap               O(log n) O(log n)    O(log n)  ConcurrentHashMap     O(1)     O(1)        O(h/n)   h is the table capacity  ConcurrentSkipListMap O(log n) O(log n)    O(1) 

    Queue implementations:

                          offer    peek poll     size PriorityQueue         O(log n) O(1) O(log n) O(1) ConcurrentLinkedQueue O(1)     O(1) O(1)     O(n) ArrayBlockingQueue    O(1)     O(1) O(1)     O(1) LinkedBlockingQueue   O(1)     O(1) O(1)     O(1) PriorityBlockingQueue O(log n) O(1) O(log n) O(1) DelayQueue            O(log n) O(1) O(log n) O(1) LinkedList            O(1)     O(1) O(1)     O(1) ArrayDeque            O(1)     O(1) O(1)     O(1) LinkedBlockingDeque   O(1)     O(1) O(1)     O(1) 

    The bottom of the javadoc for the java.util package contains some good links:

    • Collections Overview has a nice summary table.
    • Annotated Outline lists all of the implementations on one page.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing my first project that will use autoconf and teaching it to
may i know can we specify url for http-basic so that only authenticate if
In the near future, I may be teaching a Ruby programming class to undergraduates
One may not always know the Type of an object at compile-time, but may
This may be a no-brainer for the WPF cognoscenti, but I'd like to know
I'm teaching myself (read hacking) through some old Excel Macros that are quite long.
May I know how I can escape a string to be passed into decimal
May order of members in binary architecture of objects of a class somehow have
I notice in several API's, that you may create a struct which is used
May be my title is not clear. I am looking for some kind of

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.