Programming - Collection Of Frameworks
You Are Here :: Home > JAVA > Collection Of Frameworks - General Questions
31. |
An __________________ is an interface containing methods for accessing the underlying data structure from which the enumeration is obtained.
|
A. |
Enumeration |
B.
|
Iterator |
C.
|
Vector
|
D.
|
ArrayList
|
|
Answer: Option A
Explanation:
An enumeration is an interface containing methods for accessing the underlying data structure from which the enumeration is obtained. |
|
32. |
__________________ allows sequential access to all the elements stored in the collection.
|
A. |
Enumeration |
B.
|
Iterator |
C.
|
Vector
|
D.
|
ArrayList
|
|
Answer: Option A
Explanation:
enumeration allows sequential access to all the elements stored in the collection. |
|
33. |
__________________ is a construct which collection classes return when you request a collection of all the objects stored in the collection.
|
A. |
Enumeration |
B.
|
Iterator |
C.
|
Vector
|
D.
|
ArrayList
|
|
Answer: Option A
Explanation:
enumeration is a construct which collection classes return when you request a collection of all the objects stored in the collection. |
|
34. |
______________ is used when ever we want to make Collection objects as Read-only.
|
A. |
Enumeration |
B.
|
Iterator |
C.
|
Vector
|
D.
|
ArrayList
|
|
Answer: Option A
Explanation:
Enumeration is used when ever we want to make Collection objects as Read-only. |
|
35. |
_________________ data structure will give better performance than the synchronized one.
|
A. |
Synchronized |
B.
|
Non Synchronized |
C.
|
Both A and B
|
D.
|
None of these
|
|
Answer: Option B
Explanation:
Non synchronized data structure will give better performance than the synchronized one. |
|
36. |
___________________ has a input as List so it does a translation of List to array
|
A. |
Collections.sort() |
B.
|
Collections.sort() |
C.
|
Collections.sort()
|
D.
|
Collections.sort()
|
|
Answer: Option A
Explanation:
Collections.sort() has a input as List so it does a translation of List to array |
|
« prev
next »