Search Interview Questions | More than 3000 questions in repository. There are more than 900 unanswered questions. Click here and help us by providing the answer. Have a video suggestion. 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. | ||||
Help us improve. Please let us know the company, where you were asked this question : | ||||
Like Discuss Correct / Improve  Concurrent Interface   java.util.concurrent   Java 8 Concurrency   java concurrency   java 8 Asked in 1 Companies | ||||
Related Questions | ||||
What is Lock interface in Java Concurrency API ? | ||||
| ||||
This question is still unanswered. Can you please provide an answer. | ||||
Help us improve. Please let us know the company, where you were asked this question : | ||||
Like Discuss Correct / Improve  java.util.concurrent | ||||
Related Questions | ||||
Explain multithreading in Java ? | ||||
What is a Deadlock ? | ||||
What is a ConcurrentHashMap ? | ||||
What is race condition ? | ||||
What is ConcurrentModificationException ? | ||||
What is the use of runnable interface if we can always create a new thread using Thread class ? | ||||
What is a BlockingQueue? | ||||
If you need to consume messages from the queue faster, which approach will you recommend - batching or concurrency ? | ||||
What is concurrent interface ? | ||||
When you will synchronize a piece of your code? | ||||
| ||||
Ans. http://www.devinline.com/2015/10/Lock-Vs-synchronized-in-java.html | ||||
Help us improve. Please let us know the company, where you were asked this question : | ||||
Like Discuss Correct / Improve  java.util.concurrent.locks  synchronization  synchronized methods | ||||
Related Questions | ||||
Which of the following combination of keywords is illegal in Java ? a. static and transient b. transient and final c. static and synchronized d. abstract and final | ||||
Which keyword is used to provide explicit access of a code block to single thread ? a. Transient b. Final c. Explicit d. Synchronized | ||||
How does volatile affect code optimization by compiler? | ||||
Can constructors be synchronized in Java ? | ||||
What is Volatile keyword used for ? | ||||
Why HashTable has been deprecated ? | ||||
Difference between Vector and ArrayList ? | ||||
Difference between StringBuffer and StringBuilder ? | ||||
What is race condition ? | ||||
What is an object's lock and which object's have locks? | ||||