menu search
brightness_auto
Ask or Answer anything Anonymously! No sign-up is needed!
more_vert
What is called a Collection in Java?

6 Answers

more_vert
 
done_all
Best answer

Collection is a framework in java that provides a container to store and manipulate a group of objects. Or in short, it is a data structure which is used to store a group of the individual object as a single entity. Using Java collections we can achieve all the operations that we can perform on data such as searching, sorting, insertion, deletion and manipulation. The Collection interface is the root interface of the Java collections framework. There is no direct implementation of this interface. However, it is implemented through its sub-interfaces like List, Set, and Queue. For example, the ArrayList class implements the List interface which is a sub-interface of the Collection Interface. Java collection framework provides many interfaces and classes which are listed below. 


Interfaces 

1. Collection 

2. List 

3. Set 

4. SortedSet 

5. NavigableSet 

6. Queue 

7. Map 

8. SortedMap 

9. NavigableMap 


Classes 

1. ArrayList 

2. LinkedList 

3. Vector 

4. Stack 

5. HashSet 

6. Linked Hashset 

7. TreeSet 

8. PriorityQueue 

9. ArrayDeque 

10. LinkedList(Deque)

thumb_up_off_alt 1 like thumb_down_off_alt 0 dislike
more_vert

The Java collections framework is a set of classes and interfaces that implement commonly reusable collection data structures. Although referred to as a framework, it works in a manner of a library. The collections framework provides both interfaces that define various collections and classes that implement them.image

thumb_up_off_alt 1 like thumb_down_off_alt 0 dislike
more_vert
Generally Java collection means a single unit of objects. Java collection framework provides many interfaces like Set, List, Queue & Deque and classes like Arraylist, Vector, Hashset &etc. 
thumb_up_off_alt 1 like thumb_down_off_alt 0 dislike
more_vert
The Java collection framework is a set of classes and interfaces that implement commonly reusable collection data structures. Although referred to as a framework, it works in a manner of a library. 
thumb_up_off_alt 1 like thumb_down_off_alt 0 dislike
more_vert
In Java, a collection is a framework that provides interfaces and classes for managing and manipulating a group of objects, such as arrays or lists. It allows for easier data manipulation and storage.
thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike
more_vert
A Collection is an object that stores items in a order of increasing size.

A Collection is a way to organize objects that are each designed to remember just a few items from a larger number.
thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike
Welcome to Answeree, where you can ask questions and receive answers from other members of the community.
...