About 50 results
Open links in new tab
  1. What is the main difference between Collection and Collections in Java ...

    For example, Collections has methods for finding the max element in a Collection. The Collection interface defines methods common to structures which hold other objects. List and Set are …

  2. java - What is the difference between "collection" ,"Collection" and ...

    Apr 15, 2017 · The Java collections framework (JCF) is a set of classes and interfaces that implement commonly reusable collection data structures. Collection is an interface . The root interface in the …

  3. What is the difference between Collection and List in Java?

    Jul 23, 2010 · 227 Collection is the root interface to the java Collections hierarchy. List is one sub interface which defines an ordered Collection, other sub interfaces are Queue which typically will …

  4. What is the difference between Streams and Collections in Java 8

    Sep 11, 2016 · I'm learning about Streams in Java 8. I got confused about this concept: A collection is an in-memory data structure, which holds all the values that the data structure currently has—every …

  5. java - Immutable vs Unmodifiable collection - Stack Overflow

    Jan 17, 2012 · Collections that are not unmodifiable are modifiable. Collections that additionally guarantee that no change in the Collection object will be visible are referred to as immutable. …

  6. What are the major differences between a Collection, an ArrayList, and ...

    Sep 10, 2013 · 3 ArrayList is an implementation, Collection and List are interfaces. Collection is the somewhat super-interface, with List as a specialisation (ordered Collection). ArrayList is a …

  7. Differences between concurrent and synchronized collections in Java?

    BUT: If you iterate over a Collection from type 2) it isn't thread safe at all (compare this answer).Whereas iterating over a Collection of type 1) is thread safe. Are there any other …

  8. Difference between Collection and Arraylist in Java?

    The Collections API is a set of classes and interfaces that support operations on collections of objects. Example of classes: HashSet, HashMap, ArrayList, LinkedList, TreeSet and TreeMap. Example of …

  9. java - What is the difference between an ordered and a sorted ...

    Jul 5, 2009 · A sorted collection is an ordered collection when the order additionally depends on the value of the element to be inserted in, throughout the use of the Comparable interface which …

  10. java - What is the difference between a Collection and a Map? - Stack ...

    Oct 24, 2013 · From the JavaDoc of Collection: A collection represents a group of objects, known as its elements. [...] The JDK [...] provides implementations of more specific subinterfaces like Set and List. …