About 235,000 results
Open links in new tab
  1. Collection (Java SE 11 & JDK 11 ) - Oracle

    The root interface in the collection hierarchy. A collection represents a group of objects, known as its elements. Some collections allow duplicate elements and others do not. Some are ordered and others unordered.

  2. Collection Interface in Java - GeeksforGeeks

    Dec 20, 2024 · The Collection interface in Java is a core member of the Java Collections Framework located in the java.util package. It is one of the root interfaces of the Java Collection Hierarchy. The Collection interface is not directly implemented by any class.

  3. The Collection Interface (The Java™ Tutorials > Collections > Interfaces)

    The Collection interface is used to pass around collections of objects where maximum generality is desired. For example, by convention all general-purpose collection implementations have a constructor that takes a Collection argument.

  4. Collections in Java - GeeksforGeeks

    Mar 21, 2025 · The Collection interface in Java is a core member of the Java Collections Framework located in the java.util package. It is one of the root interfaces of the Java Collection Hierarchy. The Collection interface is not directly implemented by any class.

  5. Collection vs Collections in Java with Example - GeeksforGeeks

    Feb 26, 2024 · The Collection interface in Java is the fundamental part of the Collection hierarchy. It is found in the java.util package and offers a wide range of built-in classes and methods. One such useful method is containsAll().

  6. Choosing the Right Java Collection - Baeldung

    Apr 3, 2025 · In this tutorial, we’re going to discuss how to choose the proper collection interface and class in the Java library. We skip legacy collections, such as Vector , Stack , and Hashtable in our discussion as we need to avoid using them in favor of the new collections.

  7. Collections in Java - Tpoint Tech

    Apr 10, 2025 · Java Collection framework provides many interfaces (Set, List, Queue, Deque) and classes (ArrayList, Vector, LinkedList, PriorityQueue, HashSet, LinkedHashSet, TreeSet). What is Collection? A Collection represents a single unit of objects, i.e., a group.

  8. How to Use the Java Collections Framework – A Guide for …

    Jan 28, 2025 · Java Collection Interfaces By now, you’re familiar with the different types of collections that form the foundation of the collections framework. Now we’ll take a closer look at the List , Set , Queue , and Map interfaces.

  9. Lesson: Interfaces (The Java™ Tutorials > Collections) - Oracle

    The Collection interface is the least common denominator that all collections implement and is used to pass collections around and to manipulate them when maximum generality is desired. Some types of collections allow duplicate elements, and others do not.

  10. Java Collection Interface - Programiz

    In this tutorial, we will learn about the Java Collection interface and its subinterfaces. The Collection interface is the root interface of the Java collections framework. Learn to code solving problems and writing code with our hands-on Java course.

  11. Some results have been removed
Refresh