Programming - Collection Of Frameworks
You Are Here :: Home > JAVA > Collection Of Frameworks - General Questions
13. |
The ________________ class is roughly equivalent to Hashtable, except that it is unsynchronized and permits nulls.
|
A. |
Hashtable |
B.
|
HashMap |
C.
|
Both A and B
|
D.
|
None of these
|
|
Answer: Option B
Explanation:
The HashMap class is roughly equivalent to Hashtable, except that it is unsynchronized and permits nulls. |
|
14. |
______________________ does not guarantee that the order of the map will remain constant over time.
|
A. |
Hashtable |
B.
|
HashMap |
C.
|
Both A and B
|
D.
|
None of these
|
|
Answer: Option B
Explanation:
HashMap does not guarantee that the order of the map will remain constant over time. |
|
15. |
______________________ is non synchronized whereas Hashtable is synchronized.
|
A. |
Hashtable |
B.
|
HashMap |
C.
|
Both A and B
|
D.
|
None of these
|
|
Answer: Option B
Explanation:
HashMap is non synchronized whereas Hashtable is synchronized. |
|
16. |
A ________________ system is designed to immediately report any failure or condition that is likely to lead to failure.
|
A. |
Fail-Fast |
B.
|
fail |
C.
|
fast
|
D.
|
None of these
|
|
Answer: Option A
Explanation:
A fail-fast system is designed to immediately report any failure or condition that is likely to lead to failure. |
|
17. |
___________________ systems are usually designed to stop normal operation rather than attempt to continue a possibly-flawed process.
|
A. |
Fail-Fast |
B.
|
fail |
C.
|
fast
|
D.
|
None of these
|
|
Answer: Option A
Explanation:
Fail-fast systems are usually designed to stop normal operation rather than attempt to continue a possibly-flawed process. |
|
18. |
________________ means only one thread can modify a hash table at one point of time.
|
A. |
Synchronized |
B.
|
Asynchronized |
C.
|
Both A and B
|
D.
|
None of these
|
|
Answer: Option A
Explanation:
Synchronized means only one thread can modify a hash table at one point of time. |
|
« prev
next »