Search Interview Questions | Click here and help us by providing the answer. Click Correct / Improve and please let us know. |
|
|||
|
| ||||
| Core Java - Interview Questions and Answers for 'Java.util.concurrent' - 3 question(s) found - Order By Newest | ||||
| ||||
| Ans. ConcurrentMap is an interface and it is a member of the Java Collections Framework. It represents a Map that is capable of handling concurrent access to it without affecting the consistency of entries in a map. ConcurrentMap interface present in java.util.concurrent package. HashMap operations are not synchronized, while Hashtable provides synchronization. Though Hashtable is thread-safe, it is not very efficient. To solve this issue, the Java Collections Framework introduced ConcurrentMap in Java 1.5. | ||||
| ||||
| ||||
| Ans. http://www.devinline.com/2015/10/Lock-Vs-synchronized-in-java.html | ||||
a. static and transient b. transient and final c. static and synchronized d. abstract and final | ||||
a. Transient b. Final c. Explicit d. Synchronized | ||||