🌐
Oracle
docs.oracle.com › javase › 8 › docs › api › java › util › Collections.html
Collections (Java Platform SE 8 )
3 weeks ago - Returns an array list containing the elements returned by the specified enumeration in the order they are returned by the enumeration. This method provides interoperability between legacy APIs that return enumerations and new APIs that require collections.
🌐
Oracle
docs.oracle.com › javase › 8 › docs › api › java › util › Collection.html
Collection (Java Platform SE 8 )
3 weeks ago - Like the toArray() method, this method acts as bridge between array-based and collection-based APIs.
Discussions

What does "basic understanding of Java collections" mean?
Please ensure that: Your code is properly formatted as code block - see the sidebar (About on mobile) for instructions You include any and all error messages in full - best also formatted as code block You ask clear questions You demonstrate effort in solving your question/problem - plain posting your assignments is forbidden (and such posts will be removed) as is asking for or giving solutions. If any of the above points is not met, your post can and will be removed without further warning. Code is to be formatted as code block (old reddit/markdown editor: empty line before the code, each code line indented by 4 spaces, new reddit: https://i.imgur.com/EJ7tqek.png ) or linked via an external code hoster, like pastebin.com, github gist, github, bitbucket, gitlab, etc. Please, do not use triple backticks (```) as they will only render properly on new reddit, not on old reddit. Code blocks look like this: public class HelloWorld { public static void main(String[] args) { System.out.println("Hello World!"); } } You do not need to repost unless your post has been removed by a moderator. Just use the edit function of reddit to make sure your post complies with the above. If your post has remained in violation of these rules for a prolonged period of time (at least an hour), a moderator may remove it at their discretion. In this case, they will comment with an explanation on why it has been removed, and you will be required to resubmit the entire post following the proper procedures. To potential helpers Please, do not help if any of the above points are not met, rather report the post. We are trying to improve the quality of posts here. In helping people who can't be bothered to comply with the above points, you are doing the community a disservice. I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns. More on reddit.com
🌐 r/learnjava
14
39
January 9, 2023
Ask Reddit: Why does everyone hate Java?
Programming in Java is too verbose. Too many artificial restrictions put in place by the designers of the language to keep programmers "safe" from themselves. More on reddit.com
🌐 r/programming
1733
629
August 25, 2009
Java Data Structure collections

It's really important to know the behaviour of these implementations so you know which one to use.

More on reddit.com
🌐 r/learnprogramming
6
2
September 27, 2017
Collections Refueled

I love the guy at the end who wanted to ask a question and Stuart was just like: "Nope!" | Dr. Deprecator strikes again!

More on reddit.com
🌐 r/java
9
17
October 26, 2018
🌐
Object Computing
objectcomputing.com › resources › publications › sett › november-1999-the-java-collections-api
The Java Collections API | Object Computing, Inc.
The Vector class is an example of a List that has been retrofitted to implement the List interface in Java 2. The List interface adds operations to Collection for positional access, search, and range view. In addition to Vector, two new concrete implementations are provided: ArrayList – stores its elements internally as an array and provides best performance under most circumstances · LinkedList – stores its elements as a doubly-linked list · The Collections API also supports maps, but within a hierarchy distinct from Collection.
🌐
GeeksforGeeks
geeksforgeeks.org › java › collections-class-in-java
Collections Class in Java - GeeksforGeeks
AbstractCollection: Base class for implementing custom collections. AbstractList: Base class for List implementations. Provides default methods for lists. AbstractSet: Base class for Set implementations. Provides default methods for sets. AbstractMap: Base class for Map implementations. Simplifies map creation. AbstractQueue: Base class for Queue implementations. Provides basic queue operations. ... import java.util.ArrayList; import java.util.Collections; public class AddExample { public static void main(String[] args) { ArrayList<String> list = new ArrayList<>(); list.add("Apple"); list.add("Banana"); Collections.addAll(list, "Mango", "Grapes"); System.out.println("After Adding: " + list); } }
Published   February 2, 2026
🌐
GeeksforGeeks
geeksforgeeks.org › java › java-collection-tutorial
Java Collections Tutorial - GeeksforGeeks
1 week ago - Includes algorithms (sorting, searching, iteration) via the Collections utility class. Improves code reusability and performance by reducing boilerplate code. Suppose you are managing a library where thousands of books need to be stored, searched and retrieved. Instead of arranging them manually in different shelves every time, you use a catalog system. Similarly, the Java Collection Framework acts as a catalog that organizes and manages objects efficiently.
🌐
W3Schools
w3schools.com › java › java_collections.asp
Java Collections Framework
All of these are part of the java.util package. They are used to store, search, sort, and organize data more easily - all using standardized methods and patterns. Tip: Think of the Collections Framework as a toolbox.
🌐
Oracle
docs.oracle.com › en › java › javase › 21 › docs › api › java.base › java › util › Collections.html
Collections (Java SE 21 & JDK 21)
January 20, 2026 - It contains polymorphic algorithms that operate on collections, "wrappers", which return a new collection backed by a specified collection, and a few other odds and ends.
Find elsewhere
🌐
GitHub
github.com › eclipse-collections › eclipse-collections
GitHub - eclipse-collections/eclipse-collections: Eclipse Collections is a collections framework for Java with optimized data structures and a rich, functional and fluent API. · GitHub
February 24, 2026 - Eclipse Collections is a comprehensive collections library for Java. The library enables productivity and performance by delivering an expressive and efficient set of APIs and types.
Starred by 2.6K users
Forked by 674 users
Languages   Java 96.6% | HTML 2.4% | Scala 1.0%
🌐
Dev.java
dev.java › learn › api › collections-framework
The Collections Framework - Dev.java
Getting to know the Collections Framework to store and retrieve data in collections and hashmaps.
🌐
Java-samples
java-samples.com › showtutorial.php
What is Collection API? - Java samples
June 16, 2012 - Answer: The Collection API is a set of classes and interfaces that support operation on collections of objects. These classes and interfaces are more flexible, more powerful, and more regular than the vectors, arrays, and hashtables if effectively replaces.
🌐
Paumard
blog.paumard.org › cours › java-api › chap01-api-collection.html
API Collection
À la base de cette API se trouvent trois interfaces : Collection et Map, qui modèlisent respectivement les collections et les tables de hachage, et Iterator, qui modèlise les itérateurs que l'on peut construire sur ces objets. Ces trois interfaces sont présentes dans l'API Java depuis ...
🌐
Jenkov
jenkov.com › tutorials › java-collections › index.html
Java Collections
January 4, 2021 - The Java Collection API consists of a set of data structures capable of containing collections of objects. The Java Collection API core interfaces are List, Set, Map, Stack, Queue, Deque, Iterator and Iterable, but the API contains several other ...
Top answer
1 of 6
39
Exactly what you're expected to know will depend on the context, but perhaps questions like: Here are several Lists of numbers. Write a function to return all numbers which are present in all of the Lists Given a Card class with 52 different instances representing a deck of cards, shuffle the deck and print out the top 5 cards Here's a list of phone numbers and names. Write a function which somehow "indexes" them so you can efficiently look up the name if you're given a phone number Here's a List of Student objects. Sort them in descending order by the testScore property In which situations might you use a LinkedList vs an ArrayList?
2 of 6
6
The Java collections API contains implementations of many different data structures. There's a few related concepts that you want to learn here. All of programming really comes down to how you access and store data. Sometimes you have a lot of pieces of data, and you need a way to organize it so you can access the right bits when you need them. Over time programmers have come up with techniques that work well and can be used to solve a wide variety of problems, and these are called Data Structures. This includes things like Arrays, Lists, Maps, Queues, Stacks, Heaps, etc. These concepts are valid in any programming language, and understanding how each of them works and when you would use one over another is an absolutely critical set of knowledge for software engineers to have. Java provides default implementations of many different data structures, and this is called the Collections API. A good resource for learning data structures is this book: I learned these concepts by going through this book: https://www.crackingthecodinginterview.com/ It's generally geared towards interview prep, but many large tech companies build their interviews around data structure and algorithm questions, so the bulk of the book is actually a deep dive into many different data structures, how they work in detail, and then sample problems that involve using them. Each problem has answers in the back which were helpful to me when studying. I didn't get most of the answers right the first time, but it definitely gave me a solid foundation to build on. A good place to start for the Java Collection framework is the docs: https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/util/doc-files/coll-index.html It might be a bit dense at first, but it's a great resource to keep in mind as you get more familiar with the framework. It gives an overview of what types exist in the framework and also has detailed information on how each type works. For example, the javadoc for HashMap has a few paragraphs of technical details on how it works: https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/util/HashMap.html Another concept to keep in mind is the idea of runtime complexity, which is usually given in big-O notation. It's not critical to know this early on, but it's good to have a general idea of it. Runtime complexity gives you a way to compare the performance of different algorithms as the input size grows. This is something you might want to dig into once you feel like you have a decent understanding of data structures.
🌐
StackTips
stacktips.com › articles › introduction-to-java-collections
Introduction to Java Collections
July 23, 2024 - Learn Java, Spring, Spring Boot & Microservices with our expert-led tutorials, courses & quizzes. StackTips provides step-by-step tutorials, free courses, and quizzes.
🌐
Dr. JAVA
prashantgaurav1.wordpress.com › 2013 › 12 › 03 › what-is-collection-api
What is Collection API ? | Dr. JAVA
December 3, 2013 - The Collection API is a set of classes and interfaces that support operation on collections of objects. These classes and interfaces are more flexible, more powerful, and more regular than the vectors, arrays, and hashtables if effectively replaces.
🌐
Baeldung
baeldung.com › home › java › java collections › java collections series
Java Collections Series | Baeldung
January 18, 2024 - Since its introduction in Java 8, the Stream API has become a staple of Java development.
🌐
Java
download.java.net › java › early_access › loom › docs › api › java.base › java › util › doc-files › coll-overview.html
Collections Framework Overview (Java SE 25 & JDK 25 [build 1])
The AbstractCollection, AbstractSet, AbstractList, AbstractSequentialList and AbstractMap classes provide basic implementations of the core collection interfaces, to minimize the effort required to implement them. The API documentation for these classes describes precisely how each method is implemented so the implementer knows which methods must be overridden, given the performance of the basic operations of a specific implementation.
🌐
DigitalOcean
digitalocean.com › community › tutorials › collections-in-java-tutorial
Java Collections Tutorial: List, Set, Map & Queue | DigitalOcean
August 3, 2022 - The toArray methods are provided as a bridge between collections and older APIs that expect arrays on input. Iterator interface provides methods to iterate over the elements of the Collection. We can get the instance of iterator using iterator() method. Iterator takes the place of Enumeration in the Java Collections Framework.