Programming - Collection Of Frameworks
You Are Here :: Home > JAVA > Collection Of Frameworks - General Questions
37. |
The ___________ allows for fast insertions and deletions.
|
A. |
LinkedList |
B.
|
ArrayList |
C.
|
Both A and B
|
D.
|
None of these
|
|
Answer: Option A
Explanation:
The LinkedList allows for fast insertions and deletions. |
|
38. |
___________________ are Collections classes used for storing lists of object references
|
A. |
java.util.ArrayList |
B.
|
java.util.LinkedList |
C.
|
Both A and B
|
D.
|
None of these
|
|
Answer: Option C
Explanation:
java.util.ArrayList and java.util.LinkedList are two Collections classes used for storing lists of object references |
|
39. |
_______________________ uses primitive object array for storing objects
|
A. |
LinkedList |
B.
|
ArrayList |
C.
|
Both A and B
|
D.
|
None of these
|
|
Answer: Option B
Explanation:
ArrayList uses primitive object array for storing objects |
|
40. |
___________________________ is made up of a chain of nodes.
|
A. |
LinkedList |
B.
|
ArrayList |
C.
|
Both A and B
|
D.
|
None of these
|
|
Answer: Option A
Explanation:
LinkedList is made up of a chain of nodes. |
|
41. |
_______________________ implements the RandomAccess interface
|
A. |
LinkedList |
B.
|
ArrayList |
C.
|
Both A and B
|
D.
|
None of these
|
|
Answer: Option B
Explanation:
ArrayList implements the RandomAccess interface |
|
42. |
An instance of ________ has two parameters that affect its performance: initial capacity and load factor.
|
A. |
Hashtable |
B.
|
HashMap |
C.
|
Both A and B
|
D.
|
None of these
|
|
Answer: Option A
Explanation:
An instance of Hashtable has two parameters that affect its performance: initial capacity and load factor. |
|
« prev
next »