Collection framework Flashcards

1
Q

What is collection framework

A

it is a framework that provides an architecture to manipulate and store group of object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what collection framework does

A

it performs operations on data such as searching sorting inserting, manipulating and deleting

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what interfaces and classes does this have

A

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).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a framework in Java

A

It provides readymade architecture.
It represents a set of classes and interfaces.
It is optional.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Why we need collections?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

difference between arrays and collections

A

refer notebook

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

what is collection

A

when group of individual object represented as a single entity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

what is collection framework

A

defines several classes and interfaces which can be used to represent a group of object as single entity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the 9 key interfaces of collection framework

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

what is collection interface

A

collection interface consists of the most common methods that are applicable for any collection objects

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

what is the difference between collection and collections

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly