Collection framework Flashcards
What is collection framework
it is a framework that provides an architecture to manipulate and store group of object
what collection framework does
it performs operations on data such as searching sorting inserting, manipulating and deleting
what interfaces and classes does this have
Java Collection means a single unit of objects. Java Collection framework provides many interfaces (Set, List, Queue, Deque) and classes (ArrayList, Vector, LinkedList, PriorityQueue, HashSet, LinkedHashSet, TreeSet).
What is a framework in Java
It provides readymade architecture.
It represents a set of classes and interfaces.
It is optional.
Why we need collections?
because if we want to assign a huge no. of varaibles say 10,000 variable is is difficult to do so .. it can be done using arrays were multiple elements can be assigned into a single varible but array is not standard data structure and has fixed size so we use collections as it is standard data structure provides inbuilt method and has varible size
difference between arrays and collections
refer notebook
what is collection
when group of individual object represented as a single entity
what is collection framework
defines several classes and interfaces which can be used to represent a group of object as single entity
What are the 9 key interfaces of collection framework
what is collection interface
collection interface consists of the most common methods that are applicable for any collection objects
what is the difference between collection and collections