Programming - Collection Of Frameworks
You Are Here :: Home > JAVA > Collection Of Frameworks - General Questions
49. |
The _____________________ interface defines the queue data structure, which stores elements in the order in which they are inserted.
|
A. |
java.util.Queue |
B.
|
java.io.Queue |
C.
|
java.lang.Queue
|
D.
|
java.xml.Queue
|
|
Answer: Option A
Explanation:
The java.util.Queue interface defines the queue data structure, which stores elements in the order in which they are inserted. |
|
50. |
The __________________________ enables you to work with groups of objects
|
A. |
Collection Interface |
B.
|
List Interface |
C.
|
Both A and B
|
D.
|
None of these
|
|
Answer: Option A
Explanation:
The Collection Interface enables you to work with groups of objects |
|
51. |
The ________________________ extends Collection and an instance of List stores an ordered collection of elements
|
A. |
Collection Interface |
B.
|
List Interface |
C.
|
Both A and B
|
D.
|
None of these
|
|
Answer: Option B
Explanation:
The List Interface extends Collection and an instance of List stores an ordered collection of elements |
|
52. |
The __________________ extends Collection to handle sets, which must contain unique elements
|
A. |
List |
B.
|
Set |
C.
|
Map
|
D.
|
Enumeration
|
|
Answer: Option B
Explanation:
The Set extends Collection to handle sets, which must contain unique elements |
|
53. |
The ______________________ extends Set to handle sorted sets
|
A. |
SortedSet |
B.
|
LinkedSet |
C.
|
UnSortedSet
|
D.
|
List
|
|
Answer: Option A
Explanation:
The SortedSet extends Set to handle sorted sets |
|
54. |
The _____________________ maps unique keys to values
|
A. |
List |
B.
|
Set |
C.
|
Map
|
D.
|
Enumeration
|
|
Answer: Option C
Explanation:
The Map maps unique keys to values |
|
« prev
next »